| *** greenman has quit IRC | 00:01 | |
| *** davi|lunch is now known as davisagli | 00:02 | |
| *** ktwilight has joined #zope3-dev | 00:02 | |
| *** davisagli has quit IRC | 00:08 | |
| *** davisagli has joined #zope3-dev | 00:10 | |
| *** dunny has joined #zope3-dev | 00:10 | |
| *** davisagli has quit IRC | 00:14 | |
| *** davisagli has joined #zope3-dev | 00:15 | |
| *** aaronv has quit IRC | 00:24 | |
| *** davisagli_ has joined #zope3-dev | 00:31 | |
| *** benji has quit IRC | 00:36 | |
| *** junkafarian has joined #zope3-dev | 00:44 | |
| *** pcardune has joined #zope3-dev | 00:47 | |
| *** gary_poster is now known as gary_poster_fud | 00:48 | |
| *** pcardune_ has joined #zope3-dev | 00:48 | |
| *** J1m has quit IRC | 00:49 | |
| *** dvschramm is now known as dvschramm|away | 01:00 | |
| *** jdobrien has quit IRC | 01:00 | |
| *** jamur2 has quit IRC | 01:08 | |
| *** pelle____ has quit IRC | 01:11 | |
| *** ccomb has quit IRC | 01:12 | |
| *** Theuni1 has quit IRC | 01:20 | |
| *** davisagli has quit IRC | 01:20 | |
| *** malthe is now known as malthe|Zzz | 01:24 | |
| *** junkafarian has quit IRC | 01:27 | |
| *** drudi has quit IRC | 01:51 | |
| *** greenman has joined #zope3-dev | 01:56 | |
| *** aaronv has joined #zope3-dev | 02:01 | |
| *** lurkymclurkleton has quit IRC | 02:03 | |
| *** gary_poster_fud has quit IRC | 02:03 | |
| *** nathany has quit IRC | 02:10 | |
| *** romanofski has joined #zope3-dev | 02:16 | |
| *** jpcw has quit IRC | 02:24 | |
| *** jpcw has joined #zope3-dev | 02:29 | |
| *** romanofski has quit IRC | 02:36 | |
| *** pcardune_ has quit IRC | 02:46 | |
| *** pcardune_ has joined #zope3-dev | 02:58 | |
| *** kaeru has joined #zope3-dev | 03:14 | |
| *** redir_ has quit IRC | 03:15 | |
| *** davisagli_ has quit IRC | 03:41 | |
| *** jhauser has joined #zope3-dev | 03:42 | |
| *** hexsprite has joined #zope3-dev | 03:50 | |
| *** jhauser_ has quit IRC | 03:52 | |
| *** kaeru has quit IRC | 03:58 | |
| *** redir has joined #zope3-dev | 04:00 | |
| *** jdobrien has joined #zope3-dev | 04:15 | |
| *** jdobrien has quit IRC | 04:16 | |
| *** alecm has quit IRC | 04:26 | |
| *** kaeru has joined #zope3-dev | 04:28 | |
| *** aaronv has quit IRC | 04:46 | |
| *** davisagli has joined #zope3-dev | 04:47 | |
| *** pcardune_ has quit IRC | 04:55 | |
| *** hathawsh has joined #zope3-dev | 05:34 | |
| *** davisagli has quit IRC | 05:47 | |
| *** hathawsh is now known as hath|away | 05:56 | |
| *** davisagli has joined #zope3-dev | 06:04 | |
| *** jdobrien has joined #zope3-dev | 06:37 | |
| *** jdobrien has quit IRC | 06:37 | |
| *** pcardune_ has joined #zope3-dev | 07:01 | |
| *** linmyat has joined #zope3-dev | 07:16 | |
| *** allisterb has joined #zope3-dev | 07:38 | |
| *** sunoano has quit IRC | 07:51 | |
| *** sunoano has joined #zope3-dev | 07:53 | |
| *** allisterb_ has quit IRC | 07:56 | |
| *** dunny has quit IRC | 08:10 | |
| *** agroszer has joined #zope3-dev | 08:13 | |
| *** redir has quit IRC | 08:22 | |
| *** Theuni1 has joined #zope3-dev | 08:31 | |
| *** JaRoel|4D has quit IRC | 08:40 | |
| *** allisterb_ has joined #zope3-dev | 08:40 | |
| *** pcardune_ has quit IRC | 08:42 | |
| *** Theuni1 has quit IRC | 08:52 | |
| *** Theuni2 has joined #zope3-dev | 08:52 | |
| *** allisterb has quit IRC | 08:57 | |
| *** stub has joined #zope3-dev | 08:57 | |
| *** __mac__ has joined #zope3-dev | 09:04 | |
| *** jukart has joined #zope3-dev | 09:11 | |
| *** romanofski has joined #zope3-dev | 09:47 | |
| *** JaRoel|4D has joined #zope3-dev | 09:54 | |
| *** markusleist has joined #zope3-dev | 10:13 | |
| *** sunoano has quit IRC | 10:14 | |
| *** sunoano has joined #zope3-dev | 10:16 | |
| *** ccomb has joined #zope3-dev | 10:25 | |
| *** goschtl has joined #zope3-dev | 10:28 | |
| *** goschtl has quit IRC | 10:39 | |
| *** lamike has joined #zope3-dev | 10:53 | |
| *** lamike has left #zope3-dev | 10:53 | |
| *** multani has joined #zope3-dev | 11:05 | |
| *** malthe|Zzz is now known as malthe | 11:07 | |
| *** davisagli has quit IRC | 11:11 | |
| *** goschtl has joined #zope3-dev | 11:18 | |
| *** tisto has joined #zope3-dev | 11:21 | |
| *** MJ has joined #zope3-dev | 11:23 | |
| *** dunny has joined #zope3-dev | 11:28 | |
| *** ccomb has quit IRC | 11:34 | |
| *** junkafarian_ has joined #zope3-dev | 11:37 | |
| *** kaeru_ has joined #zope3-dev | 11:39 | |
| *** junkafarian__ has joined #zope3-dev | 11:45 | |
| *** junkafarian__ is now known as junkafarian | 11:49 | |
| *** junkafarian_ has quit IRC | 12:01 | |
| *** kaeru has quit IRC | 12:03 | |
| *** romanofski has quit IRC | 12:12 | |
| *** dunny has quit IRC | 12:18 | |
| *** dunny has joined #zope3-dev | 12:21 | |
| *** ignas has joined #zope3-dev | 12:26 | |
| *** linmyat has quit IRC | 12:26 | |
| *** thekryz has joined #zope3-dev | 12:30 | |
| thekryz | Hi there. I need a way to check in a page template, whether it is part of a view or not. So I need to see, if the variable "view" exists or not. How would you do that? Checking for a NameError doesn't seem to be possible in one line | 12:31 |
|---|---|---|
| *** menesis has joined #zope3-dev | 12:32 | |
| __mac__ | thekryz: how about <tal:defs define="view view|nothing" /> | 12:39 |
| __mac__ | and then | 12:40 |
| *** stub has quit IRC | 12:41 | |
| __mac__ | <tal:cond condition="view"> do something </tal:cond><tal:no-view conditiion="not:view"> do something else </tal:no-view> | 12:41 |
| * thekryz is trying | 12:41 | |
| thekryz | <tal:define define="myView view|nothing"></tal:define> seems to somehow lead to "RuntimeError: maximum recursion depth exceeded" | 12:44 |
| __mac__ | thekryz: right, use: myView nocall:view|nothing | 12:47 |
| goschtl | thekryz: tal:define nocall | 12:47 |
| __mac__ | otherwise the view gets called | 12:47 |
| thekryz | thanks, that was helpful :) | 12:50 |
| *** greenman has quit IRC | 12:56 | |
| thekryz | now every time I want to access my defined variable I have to use nocall:... Can't I do sth like "myView nocall:view and True|nothing"? Didn't succeed so far | 12:57 |
| *** jpcw has quit IRC | 13:00 | |
| __mac__ | thekryz: as view is callable ZPT calls it when you use it in a path expression, but you can do a next step: | 13:01 |
| __mac__ | <tal:asdf define="have_view python:view is not None" /> | 13:01 |
| *** JaRoel|4D has quit IRC | 13:05 | |
| *** JaRoel|4D has joined #zope3-dev | 13:05 | |
| thekryz | that's what I'm looking for, but it dowsn't seem to work in the case, that view does not exist - so I'd have to go through two defines then I guess? No, doesn't work either... what is the python equivalent for nocall? | 13:05 |
| thekryz | this is how far I got: <tal:define define="myView nocall:view|nothing; hasView python:myView is not None"> | 13:06 |
| thekryz | but the last define still does the recursion dance | 13:06 |
| *** skriv has quit IRC | 13:07 | |
| *** Theuni2 has quit IRC | 13:09 | |
| *** aaronv has joined #zope3-dev | 13:21 | |
| thekryz | okay, I found the trick: | 13:21 |
| thekryz | similar as the nocall, there is also an exists. | 13:22 |
| thekryz | so I can just do a tal:condition="exists:view" | 13:22 |
| thekryz | that's it :> | 13:23 |
| thekryz | thanks again | 13:25 |
| *** Theuni1 has joined #zope3-dev | 13:28 | |
| *** __mac__ has quit IRC | 13:29 | |
| *** thekryz has quit IRC | 13:31 | |
| *** __mac__ has joined #zope3-dev | 13:35 | |
| *** aaronv has quit IRC | 13:41 | |
| *** aaronv has joined #zope3-dev | 13:59 | |
| *** fcorrea has quit IRC | 14:08 | |
| *** fcorrea has joined #zope3-dev | 14:11 | |
| *** jdobrien has joined #zope3-dev | 14:20 | |
| *** aaronv has quit IRC | 14:41 | |
| *** projekt01 has joined #zope3-dev | 15:00 | |
| *** hazmat has quit IRC | 15:06 | |
| *** jpcw has joined #zope3-dev | 15:09 | |
| *** skriv has joined #zope3-dev | 15:13 | |
| *** benji has joined #zope3-dev | 15:17 | |
| *** ignas has quit IRC | 15:17 | |
| *** ignas has joined #zope3-dev | 15:18 | |
| *** aaronv has joined #zope3-dev | 15:27 | |
| *** menesis has quit IRC | 15:32 | |
| *** dunny has quit IRC | 15:35 | |
| *** dunny has joined #zope3-dev | 15:36 | |
| *** jhauser has quit IRC | 15:50 | |
| *** jhauser has joined #zope3-dev | 15:50 | |
| *** redir has joined #zope3-dev | 15:52 | |
| *** jamur2 has joined #zope3-dev | 16:02 | |
| *** gary_poster has joined #zope3-dev | 16:04 | |
| *** tisto_ has joined #zope3-dev | 16:05 | |
| *** tisto has quit IRC | 16:11 | |
| *** dvschramm|away is now known as dvschramm | 16:19 | |
| *** redir is now known as re|VPN | 16:41 | |
| *** redir has joined #zope3-dev | 16:53 | |
| *** __mac__ has quit IRC | 16:57 | |
| *** re|VPN has quit IRC | 16:59 | |
| *** stub has joined #zope3-dev | 17:00 | |
| *** Theuni1 has quit IRC | 17:10 | |
| *** kursor has joined #zope3-dev | 17:26 | |
| *** allisterb has joined #zope3-dev | 17:35 | |
| *** jdobrien has quit IRC | 17:40 | |
| *** J1m has joined #zope3-dev | 17:42 | |
| *** MJ has quit IRC | 17:47 | |
| *** ktwilight has quit IRC | 17:52 | |
| *** ktwilight has joined #zope3-dev | 17:52 | |
| *** allisterb_ has quit IRC | 17:53 | |
| *** projekt01 has quit IRC | 17:54 | |
| *** ignas has quit IRC | 18:13 | |
| *** sunoano has quit IRC | 18:14 | |
| *** sunoano has joined #zope3-dev | 18:16 | |
| *** sweh has quit IRC | 18:26 | |
| *** goschtl has quit IRC | 18:31 | |
| *** pcardune_ has joined #zope3-dev | 18:39 | |
| *** pcardune_ has quit IRC | 18:42 | |
| *** tisto_ has quit IRC | 18:46 | |
| *** CSWookie has quit IRC | 18:46 | |
| *** hath|away is now known as hathawsh | 18:50 | |
| *** ktwilight has quit IRC | 18:51 | |
| *** allisterb has quit IRC | 18:53 | |
| *** ktwilight has joined #zope3-dev | 18:54 | |
| *** tisto_ has joined #zope3-dev | 18:57 | |
| *** allisterb has joined #zope3-dev | 18:59 | |
| *** allisterb has left #zope3-dev | 19:00 | |
| *** JaRoel|4D has quit IRC | 19:00 | |
| *** CSWookie has joined #zope3-dev | 19:01 | |
| *** davisagli has joined #zope3-dev | 19:11 | |
| *** pcardune_ has joined #zope3-dev | 19:16 | |
| *** jukart has quit IRC | 19:20 | |
| *** __mac__ has joined #zope3-dev | 19:26 | |
| *** pcardune_ has quit IRC | 19:34 | |
| *** pcardune_ has joined #zope3-dev | 19:37 | |
| *** nathany has joined #zope3-dev | 19:38 | |
| *** runyaga has quit IRC | 19:41 | |
| *** pcardune_ has quit IRC | 19:46 | |
| *** alecm has joined #zope3-dev | 19:58 | |
| *** stub has quit IRC | 19:59 | |
| *** hathawsh is now known as hath|away | 20:02 | |
| *** hath|away is now known as hathawsh | 20:07 | |
| *** tisto_ has quit IRC | 20:11 | |
| *** tisto_ has joined #zope3-dev | 20:11 | |
| *** pcardune_ has joined #zope3-dev | 20:13 | |
| *** tisto_ has quit IRC | 20:18 | |
| *** tisto_ has joined #zope3-dev | 20:20 | |
| *** JaRoel|4D has joined #zope3-dev | 20:34 | |
| *** tisto_ has quit IRC | 20:35 | |
| *** drudi has joined #zope3-dev | 20:39 | |
| *** pcardune__ has joined #zope3-dev | 20:39 | |
| *** tisto_ has joined #zope3-dev | 20:39 | |
| *** pcardune___ has joined #zope3-dev | 20:46 | |
| *** pcardune_ has quit IRC | 20:47 | |
| *** __mac__ has quit IRC | 20:54 | |
| *** pcardune__ has quit IRC | 20:54 | |
| *** __mac__ has joined #zope3-dev | 20:56 | |
| *** jpcw has quit IRC | 21:22 | |
| *** junkafarian has quit IRC | 21:32 | |
| *** kursor has quit IRC | 21:36 | |
| *** kursor has joined #zope3-dev | 21:36 | |
| *** hathawsh is now known as hath|away | 21:42 | |
| *** ignas has joined #zope3-dev | 21:50 | |
| *** kursor has quit IRC | 21:52 | |
| *** jukart has joined #zope3-dev | 21:53 | |
| *** gary_poster has quit IRC | 21:54 | |
| *** agroszer has quit IRC | 22:01 | |
| *** hath|away is now known as hathawsh | 22:03 | |
| *** jukart has quit IRC | 22:05 | |
| *** ignas has quit IRC | 22:09 | |
| *** jukart has joined #zope3-dev | 22:13 | |
| *** jukart has quit IRC | 22:14 | |
| *** pcardune___ has quit IRC | 22:17 | |
| *** jpcw has joined #zope3-dev | 22:31 | |
| *** nathany has quit IRC | 22:50 | |
| *** __mac__ has quit IRC | 23:01 | |
| *** pcardune_ has joined #zope3-dev | 23:10 | |
| *** faassen has joined #zope3-dev | 23:12 | |
| *** skriv has quit IRC | 23:15 | |
| *** skriv has joined #zope3-dev | 23:15 | |
| *** gary_poster has joined #zope3-dev | 23:18 | |
| *** faassen has quit IRC | 23:20 | |
| *** skriv has quit IRC | 23:21 | |
| *** skriv1 has joined #zope3-dev | 23:21 | |
| *** skriv1 has quit IRC | 23:27 | |
| *** skriv has joined #zope3-dev | 23:28 | |
| *** gary_poster has quit IRC | 23:34 | |
| *** gary_poster has joined #zope3-dev | 23:34 | |
| *** greenman has joined #zope3-dev | 23:42 | |
| *** pcardune has quit IRC | 23:44 | |
| *** nathany has joined #zope3-dev | 23:47 | |
Generated by irclog2html.py 4.0.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!