IRC log of #zope3-dev for Thursday, 2009-07-30

*** greenman has quit IRC00:01
*** davi|lunch is now known as davisagli00:02
*** ktwilight has joined #zope3-dev00:02
*** davisagli has quit IRC00:08
*** davisagli has joined #zope3-dev00:10
*** dunny has joined #zope3-dev00:10
*** davisagli has quit IRC00:14
*** davisagli has joined #zope3-dev00:15
*** aaronv has quit IRC00:24
*** davisagli_ has joined #zope3-dev00:31
*** benji has quit IRC00:36
*** junkafarian has joined #zope3-dev00:44
*** pcardune has joined #zope3-dev00:47
*** gary_poster is now known as gary_poster_fud00:48
*** pcardune_ has joined #zope3-dev00:48
*** J1m has quit IRC00:49
*** dvschramm is now known as dvschramm|away01:00
*** jdobrien has quit IRC01:00
*** jamur2 has quit IRC01:08
*** pelle____ has quit IRC01:11
*** ccomb has quit IRC01:12
*** Theuni1 has quit IRC01:20
*** davisagli has quit IRC01:20
*** malthe is now known as malthe|Zzz01:24
*** junkafarian has quit IRC01:27
*** drudi has quit IRC01:51
*** greenman has joined #zope3-dev01:56
*** aaronv has joined #zope3-dev02:01
*** lurkymclurkleton has quit IRC02:03
*** gary_poster_fud has quit IRC02:03
*** nathany has quit IRC02:10
*** romanofski has joined #zope3-dev02:16
*** jpcw has quit IRC02:24
*** jpcw has joined #zope3-dev02:29
*** romanofski has quit IRC02:36
*** pcardune_ has quit IRC02:46
*** pcardune_ has joined #zope3-dev02:58
*** kaeru has joined #zope3-dev03:14
*** redir_ has quit IRC03:15
*** davisagli_ has quit IRC03:41
*** jhauser has joined #zope3-dev03:42
*** hexsprite has joined #zope3-dev03:50
*** jhauser_ has quit IRC03:52
*** kaeru has quit IRC03:58
*** redir has joined #zope3-dev04:00
*** jdobrien has joined #zope3-dev04:15
*** jdobrien has quit IRC04:16
*** alecm has quit IRC04:26
*** kaeru has joined #zope3-dev04:28
*** aaronv has quit IRC04:46
*** davisagli has joined #zope3-dev04:47
*** pcardune_ has quit IRC04:55
*** hathawsh has joined #zope3-dev05:34
*** davisagli has quit IRC05:47
*** hathawsh is now known as hath|away05:56
*** davisagli has joined #zope3-dev06:04
*** jdobrien has joined #zope3-dev06:37
*** jdobrien has quit IRC06:37
*** pcardune_ has joined #zope3-dev07:01
*** linmyat has joined #zope3-dev07:16
*** allisterb has joined #zope3-dev07:38
*** sunoano has quit IRC07:51
*** sunoano has joined #zope3-dev07:53
*** allisterb_ has quit IRC07:56
*** dunny has quit IRC08:10
*** agroszer has joined #zope3-dev08:13
*** redir has quit IRC08:22
*** Theuni1 has joined #zope3-dev08:31
*** JaRoel|4D has quit IRC08:40
*** allisterb_ has joined #zope3-dev08:40
*** pcardune_ has quit IRC08:42
*** Theuni1 has quit IRC08:52
*** Theuni2 has joined #zope3-dev08:52
*** allisterb has quit IRC08:57
*** stub has joined #zope3-dev08:57
*** __mac__ has joined #zope3-dev09:04
*** jukart has joined #zope3-dev09:11
*** romanofski has joined #zope3-dev09:47
*** JaRoel|4D has joined #zope3-dev09:54
*** markusleist has joined #zope3-dev10:13
*** sunoano has quit IRC10:14
*** sunoano has joined #zope3-dev10:16
*** ccomb has joined #zope3-dev10:25
*** goschtl has joined #zope3-dev10:28
*** goschtl has quit IRC10:39
*** lamike has joined #zope3-dev10:53
*** lamike has left #zope3-dev10:53
*** multani has joined #zope3-dev11:05
*** malthe|Zzz is now known as malthe11:07
*** davisagli has quit IRC11:11
*** goschtl has joined #zope3-dev11:18
*** tisto has joined #zope3-dev11:21
*** MJ has joined #zope3-dev11:23
*** dunny has joined #zope3-dev11:28
*** ccomb has quit IRC11:34
*** junkafarian_ has joined #zope3-dev11:37
*** kaeru_ has joined #zope3-dev11:39
*** junkafarian__ has joined #zope3-dev11:45
*** junkafarian__ is now known as junkafarian11:49
*** junkafarian_ has quit IRC12:01
*** kaeru has quit IRC12:03
*** romanofski has quit IRC12:12
*** dunny has quit IRC12:18
*** dunny has joined #zope3-dev12:21
*** ignas has joined #zope3-dev12:26
*** linmyat has quit IRC12:26
*** thekryz has joined #zope3-dev12:30
thekryzHi 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 line12:31
*** menesis has joined #zope3-dev12:32
__mac__thekryz: how about <tal:defs define="view view|nothing" />12:39
__mac__and then12:40
*** stub has quit IRC12: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 trying12: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|nothing12:47
goschtlthekryz:  tal:define nocall12:47
__mac__otherwise the view gets called12:47
thekryzthanks, that was helpful :)12:50
*** greenman has quit IRC12:56
thekryznow 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 far12:57
*** jpcw has quit IRC13: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 IRC13:05
*** JaRoel|4D has joined #zope3-dev13:05
thekryzthat'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
thekryzthis is how far I got: <tal:define define="myView nocall:view|nothing; hasView python:myView is not None">13:06
thekryzbut the last define still does the recursion dance13:06
*** skriv has quit IRC13:07
*** Theuni2 has quit IRC13:09
*** aaronv has joined #zope3-dev13:21
thekryzokay, I found the trick:13:21
thekryzsimilar as the nocall, there is also an exists.13:22
thekryzso I can just do a tal:condition="exists:view"13:22
thekryzthat's it :>13:23
thekryzthanks again13:25
*** Theuni1 has joined #zope3-dev13:28
*** __mac__ has quit IRC13:29
*** thekryz has quit IRC13:31
*** __mac__ has joined #zope3-dev13:35
*** aaronv has quit IRC13:41
*** aaronv has joined #zope3-dev13:59
*** fcorrea has quit IRC14:08
*** fcorrea has joined #zope3-dev14:11
*** jdobrien has joined #zope3-dev14:20
*** aaronv has quit IRC14:41
*** projekt01 has joined #zope3-dev15:00
*** hazmat has quit IRC15:06
*** jpcw has joined #zope3-dev15:09
*** skriv has joined #zope3-dev15:13
*** benji has joined #zope3-dev15:17
*** ignas has quit IRC15:17
*** ignas has joined #zope3-dev15:18
*** aaronv has joined #zope3-dev15:27
*** menesis has quit IRC15:32
*** dunny has quit IRC15:35
*** dunny has joined #zope3-dev15:36
*** jhauser has quit IRC15:50
*** jhauser has joined #zope3-dev15:50
*** redir has joined #zope3-dev15:52
*** jamur2 has joined #zope3-dev16:02
*** gary_poster has joined #zope3-dev16:04
*** tisto_ has joined #zope3-dev16:05
*** tisto has quit IRC16:11
*** dvschramm|away is now known as dvschramm16:19
*** redir is now known as re|VPN16:41
*** redir has joined #zope3-dev16:53
*** __mac__ has quit IRC16:57
*** re|VPN has quit IRC16:59
*** stub has joined #zope3-dev17:00
*** Theuni1 has quit IRC17:10
*** kursor has joined #zope3-dev17:26
*** allisterb has joined #zope3-dev17:35
*** jdobrien has quit IRC17:40
*** J1m has joined #zope3-dev17:42
*** MJ has quit IRC17:47
*** ktwilight has quit IRC17:52
*** ktwilight has joined #zope3-dev17:52
*** allisterb_ has quit IRC17:53
*** projekt01 has quit IRC17:54
*** ignas has quit IRC18:13
*** sunoano has quit IRC18:14
*** sunoano has joined #zope3-dev18:16
*** sweh has quit IRC18:26
*** goschtl has quit IRC18:31
*** pcardune_ has joined #zope3-dev18:39
*** pcardune_ has quit IRC18:42
*** tisto_ has quit IRC18:46
*** CSWookie has quit IRC18:46
*** hath|away is now known as hathawsh18:50
*** ktwilight has quit IRC18:51
*** allisterb has quit IRC18:53
*** ktwilight has joined #zope3-dev18:54
*** tisto_ has joined #zope3-dev18:57
*** allisterb has joined #zope3-dev18:59
*** allisterb has left #zope3-dev19:00
*** JaRoel|4D has quit IRC19:00
*** CSWookie has joined #zope3-dev19:01
*** davisagli has joined #zope3-dev19:11
*** pcardune_ has joined #zope3-dev19:16
*** jukart has quit IRC19:20
*** __mac__ has joined #zope3-dev19:26
*** pcardune_ has quit IRC19:34
*** pcardune_ has joined #zope3-dev19:37
*** nathany has joined #zope3-dev19:38
*** runyaga has quit IRC19:41
*** pcardune_ has quit IRC19:46
*** alecm has joined #zope3-dev19:58
*** stub has quit IRC19:59
*** hathawsh is now known as hath|away20:02
*** hath|away is now known as hathawsh20:07
*** tisto_ has quit IRC20:11
*** tisto_ has joined #zope3-dev20:11
*** pcardune_ has joined #zope3-dev20:13
*** tisto_ has quit IRC20:18
*** tisto_ has joined #zope3-dev20:20
*** JaRoel|4D has joined #zope3-dev20:34
*** tisto_ has quit IRC20:35
*** drudi has joined #zope3-dev20:39
*** pcardune__ has joined #zope3-dev20:39
*** tisto_ has joined #zope3-dev20:39
*** pcardune___ has joined #zope3-dev20:46
*** pcardune_ has quit IRC20:47
*** __mac__ has quit IRC20:54
*** pcardune__ has quit IRC20:54
*** __mac__ has joined #zope3-dev20:56
*** jpcw has quit IRC21:22
*** junkafarian has quit IRC21:32
*** kursor has quit IRC21:36
*** kursor has joined #zope3-dev21:36
*** hathawsh is now known as hath|away21:42
*** ignas has joined #zope3-dev21:50
*** kursor has quit IRC21:52
*** jukart has joined #zope3-dev21:53
*** gary_poster has quit IRC21:54
*** agroszer has quit IRC22:01
*** hath|away is now known as hathawsh22:03
*** jukart has quit IRC22:05
*** ignas has quit IRC22:09
*** jukart has joined #zope3-dev22:13
*** jukart has quit IRC22:14
*** pcardune___ has quit IRC22:17
*** jpcw has joined #zope3-dev22:31
*** nathany has quit IRC22:50
*** __mac__ has quit IRC23:01
*** pcardune_ has joined #zope3-dev23:10
*** faassen has joined #zope3-dev23:12
*** skriv has quit IRC23:15
*** skriv has joined #zope3-dev23:15
*** gary_poster has joined #zope3-dev23:18
*** faassen has quit IRC23:20
*** skriv has quit IRC23:21
*** skriv1 has joined #zope3-dev23:21
*** skriv1 has quit IRC23:27
*** skriv has joined #zope3-dev23:28
*** gary_poster has quit IRC23:34
*** gary_poster has joined #zope3-dev23:34
*** greenman has joined #zope3-dev23:42
*** pcardune has quit IRC23:44
*** nathany has joined #zope3-dev23:47

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!