IRC log of #zope3-dev for Thursday, 2009-11-26

*** matthal has quit IRC00:06
*** redir_ has quit IRC00:14
*** afd__ has quit IRC00:23
*** sben has joined #zope3-dev00:25
*** sben has quit IRC00:31
*** SpeedyGhost has quit IRC00:35
*** gary_poster has quit IRC00:37
*** Theuni1 has joined #zope3-dev00:40
*** markusleist has joined #zope3-dev00:44
*** sm has quit IRC00:54
*** romanofski has joined #zope3-dev00:55
*** aaronv has quit IRC01:06
*** menesis has quit IRC01:07
*** matthal has joined #zope3-dev01:07
*** Theuni1 has quit IRC01:18
*** mcdonc has quit IRC01:25
*** mcdonc has joined #zope3-dev01:29
*** ignas has quit IRC01:34
*** sben has joined #zope3-dev01:39
*** pcardune_ has joined #zope3-dev01:57
*** davisagli has left #zope3-dev02:07
*** pcardune has quit IRC02:14
*** pcardune_ is now known as pcardune02:14
*** pcardune_ has joined #zope3-dev02:17
*** pcardune has quit IRC02:36
*** pcardune_ is now known as pcardune02:36
*** pcardune has quit IRC02:43
*** pcardune has joined #zope3-dev02:43
*** jfkw has quit IRC03:29
*** davisagli has joined #zope3-dev03:43
*** huajie has joined #zope3-dev03:48
*** alecm has quit IRC04:08
*** pcardune has quit IRC04:22
*** jhauser_ has joined #zope3-dev04:25
*** jhauser has quit IRC04:42
*** jhauser_ is now known as jhauser04:42
*** do3cc has quit IRC04:42
*** kiorky has quit IRC04:42
*** benji has quit IRC04:43
*** benji has joined #zope3-dev04:44
*** fcorrea has joined #zope3-dev04:45
*** kiorky has joined #zope3-dev04:49
*** do3cc has joined #zope3-dev05:15
*** davisagli has quit IRC05:34
*** kiorky has quit IRC05:39
*** markusleist has quit IRC05:39
*** jpcw has quit IRC05:39
*** do3cc has quit IRC05:39
*** BjornT_ has quit IRC05:39
*** davisagli has joined #zope3-dev05:39
*** do3cc has joined #zope3-dev05:39
*** kiorky has joined #zope3-dev05:39
*** markusleist has joined #zope3-dev05:39
*** BjornT_ has joined #zope3-dev05:39
*** jpcw has joined #zope3-dev05:39
*** stub has joined #zope3-dev06:09
*** mcdonc has quit IRC06:17
*** mcdonc has joined #zope3-dev06:18
*** afd__ has joined #zope3-dev07:19
*** matthal has quit IRC07:41
*** kaeru has quit IRC07:47
*** Theuni1 has joined #zope3-dev07:57
*** sweh has joined #zope3-dev08:12
*** zagy has joined #zope3-dev08:12
*** zagy has quit IRC08:13
*** yotaff has joined #zope3-dev08:41
*** Theuni1 has quit IRC08:51
*** Theuni1 has joined #zope3-dev08:52
*** huajie has left #zope3-dev09:00
*** sweh has quit IRC09:09
*** __mac__ has joined #zope3-dev09:11
*** jpcw has quit IRC09:17
*** sweh has joined #zope3-dev09:31
*** agroszer_ has joined #zope3-dev09:32
*** projekt01 has joined #zope3-dev09:38
*** matthal has joined #zope3-dev09:41
*** romanofski has quit IRC09:45
*** agroszer_ is now known as agroszer10:06
*** jukart has joined #zope3-dev10:12
*** junkafarian has joined #zope3-dev10:35
*** iham has joined #zope3-dev10:37
*** markusleist has quit IRC10:47
*** romanofski has joined #zope3-dev10:53
*** matthal has quit IRC10:58
*** jpcw has joined #zope3-dev11:01
*** zagy has joined #zope3-dev11:02
*** zagy has quit IRC11:02
*** jhauser has quit IRC11:08
*** zagy has joined #zope3-dev11:12
*** zagy has quit IRC11:13
*** MJ has joined #zope3-dev11:26
*** junkafarian has quit IRC11:34
*** fRiSi has joined #zope3-dev11:34
*** menesis has joined #zope3-dev11:43
*** fRiSi has quit IRC12:01
*** __mac__ has quit IRC12:30
*** iham has quit IRC12:31
*** __mac__ has joined #zope3-dev12:33
*** Count-Duckula has joined #zope3-dev12:46
*** mintsauce has joined #zope3-dev12:51
mintsauceSo ... just mulling something over here .... Have a PersistentDict record (lets call it a blog post, for arguments sake), I want to add a comments facility to it. Thinking of just adding a nested dict with the comments, as I can't think of any reason to have it separate - any advice otherwise?12:55
mintsauce'Blog post' is displayed in 3 places, one of which shows all details - the others just title. So I suppose if the post had lots of comments it might 'slow' the others down unnecessarily....12:57
*** davisagli has quit IRC12:58
koboldmintsauce: it sounds reasonable, although I would do it with a ICommentable(object) adapter, so you can change the implementation later if needed12:59
mintsauceICommentable? Haven't come across that before.12:59
koboldmintsauce: you can create an interface ICommentable and write an adapter that stores the comments in the PersistentDict13:00
* mintsauce feeds his im-sure-zope3-does-this-already paranoia13:00
koboldmintsauce: later, you can decide to store the comments somewhere else without changing the API (eg. you have a different adapter)13:00
mintsauceA bit like IAnnotations?13:01
koboldmintsauce: yep, that was my idea13:01
mintsauceHow to implement commenting the best way - http://article.gmane.org/gmane.comp.web.zope.plone.devel/1731413:02
mintsaucekobold: Do you have a Zope3 example?13:05
koboldmintsauce: not really, as I don't use zodb, but I don't think it is too complex13:06
koboldmintsauce: in fact, the IAttributeAnnotatable stuff is probably the best example for you13:07
mintsauceICommentable isn't part of the API? Is it just a custom annotation?13:08
koboldmintsauce: no, it is not part of the zope 3 API, it was just an example13:09
kobold= 12:00:16 < kobold> mintsauce: you can create an interface ICommentable and write an adapter that stores the comments in the PersistentDict13:10
mintsauceSorry, I see now :)13:10
*** romanofski has quit IRC13:13
*** mcdonc has quit IRC13:20
*** fcorrea has quit IRC13:21
*** mintsauce has quit IRC13:39
*** menesis has quit IRC13:46
*** menesis has joined #zope3-dev13:48
*** fcorrea has joined #zope3-dev13:56
*** allisterb_ has joined #zope3-dev13:57
*** dunny has quit IRC14:00
*** dunny has joined #zope3-dev14:02
*** allisterb has quit IRC14:07
*** yvl has joined #zope3-dev14:21
*** jhauser has joined #zope3-dev14:25
*** stub has quit IRC14:33
*** junkafarian has joined #zope3-dev15:09
*** Aiste has joined #zope3-dev15:17
*** mgedmin has joined #zope3-dev15:22
*** lamike has joined #zope3-dev15:23
*** lamike has left #zope3-dev15:23
*** tarek has quit IRC15:40
*** tarek has joined #zope3-dev15:46
*** tarek has quit IRC16:03
*** tarek has joined #zope3-dev16:04
*** ignas has joined #zope3-dev16:06
*** reinout has joined #zope3-dev16:06
*** jhauser has quit IRC16:11
*** tarek has quit IRC16:17
*** tarek has joined #zope3-dev16:17
*** jpcw has quit IRC16:42
*** tarek has quit IRC16:48
*** tarek has joined #zope3-dev16:49
*** reinout has quit IRC16:52
*** jpcw has joined #zope3-dev16:53
*** mkerrin has joined #zope3-dev16:56
*** aaronv has joined #zope3-dev16:59
*** tarek has quit IRC17:01
*** tarek has joined #zope3-dev17:01
*** aaronv has quit IRC17:10
*** aaronv has joined #zope3-dev17:16
*** junkafarian has quit IRC17:38
*** junkafarian has joined #zope3-dev17:40
*** projekt01 has quit IRC17:40
*** allisterb_ has quit IRC17:40
*** mcdonc has joined #zope3-dev17:53
*** sweh has quit IRC17:54
*** tarek_ has joined #zope3-dev17:55
*** tarek has quit IRC18:02
*** Theuni1 has quit IRC18:10
*** Theuni1 has joined #zope3-dev18:10
*** jhauser has joined #zope3-dev18:19
*** aaronv has quit IRC18:20
*** mkerrin has left #zope3-dev18:22
*** jhauser has quit IRC18:22
*** tarek_ has quit IRC18:28
*** ignas has quit IRC18:29
*** __mac___ has joined #zope3-dev18:29
*** Theuni2 has joined #zope3-dev18:29
*** Theuni1 has quit IRC18:31
*** Theuni2 has quit IRC18:34
*** jukart has quit IRC18:35
*** __mac___ has quit IRC18:35
*** __mac___ has joined #zope3-dev18:35
*** tarek_ has joined #zope3-dev18:36
*** __mac__ has quit IRC18:37
*** __mac___ is now known as __mac__18:37
*** Theuni1 has joined #zope3-dev18:38
*** jhauser has joined #zope3-dev18:42
*** davisagli has joined #zope3-dev18:49
*** MJ has quit IRC18:52
*** __mac__ has quit IRC18:58
*** tarek_ has quit IRC19:11
*** tarek has joined #zope3-dev19:15
*** aaronv has joined #zope3-dev19:21
*** jpcw has quit IRC19:23
*** Aiste has quit IRC19:25
*** ignas has joined #zope3-dev19:27
*** tarek has quit IRC19:29
*** tarek has joined #zope3-dev19:29
*** Count-Duckula has quit IRC19:38
*** benji has quit IRC19:39
*** aaronv has quit IRC19:41
*** fcorrea has quit IRC19:42
*** agroszer has quit IRC19:44
*** agroszer_ has joined #zope3-dev19:44
*** ignas has quit IRC19:53
*** davisagli has quit IRC19:55
*** menesis has quit IRC20:00
*** menesis has joined #zope3-dev20:01
*** tarek has quit IRC20:05
*** tarek has joined #zope3-dev20:05
*** davisagli has joined #zope3-dev20:11
*** agroszer_ has quit IRC20:14
*** agroszer__ has joined #zope3-dev20:14
*** tarek has quit IRC20:17
*** tarek has joined #zope3-dev20:18
*** fcorrea has joined #zope3-dev20:25
*** tarek has quit IRC20:34
*** tarek__ has joined #zope3-dev20:36
*** aaronv has joined #zope3-dev20:43
*** ignas has joined #zope3-dev20:51
*** aaronv has quit IRC20:53
*** ignas has quit IRC21:17
*** grahal has joined #zope3-dev21:24
*** markusleist has joined #zope3-dev21:28
grahali'm getting error21:30
grahal  File "/home/gustavowork/.buildout/eggs/zope.traversing-3.4.1-py2.5.egg/zope/traversing/browser/absoluteurl.py", line 55, in __str__21:30
grahal    raise TypeError(_insufficientContext)21:30
grahalTypeError: There isn't enough context to get URL information. This is probably due to a bug in setting up location information.21:30
grahalbut I'm sure I am to blame21:30
grahalso I was wondering if I can access view context in zope3 debugger21:31
*** yotaff has quit IRC21:42
*** markusleist has quit IRC21:48
mgedminzope3 has a debugger?21:49
mgedminthe error is caused by some object no having __parent__ and __name__ set properly21:49
mgedminif you're running zope as a wsgi app, you can use the WebError middleware to get a nice interactive Python console in your browser21:50
*** markusleist has joined #zope3-dev21:55
grahalmgedmin: ok, postmortemhttpdebugger as mentioned in zope3 book worked fine22:06
*** aaronv has joined #zope3-dev22:06
mgedmincool, I'd completely forgotten about it22:06
grahalbut i'll have a look on tihs22:06
grahali'm new on zope and wsgi world so need to go slow :)22:06
grahalanother question22:07
grahal <a tal:content="system/hypervisor"22:07
grahal     tal:attributes="href string:${system/hypervisor/@@absolute_url}/"></a>22:07
grahalthe problem is that hypervisor is a method, not a attribute22:07
grahalthat is the error22:07
grahalwhat should I do then? hypervisor method returns hypervisor object22:07
mgedmin<a tal:define="hypervisor system/hypervisor" tal:content="hypervisor" tal:attributes="href hypervisor/@@absolute_url" />22:08
mgedminmethods get called if they're at the end of a path expression22:08
grahalhmm22:08
mgedminby using a tal:define you force system.hypervisor() to be at the end22:08
grahalgot it22:10
grahalwill try thanks22:10
*** allisterb has joined #zope3-dev22:20
*** matthal has joined #zope3-dev22:22
*** agroszer__ has quit IRC22:26
*** davisagli has quit IRC22:32
*** aaronv has quit IRC22:50
*** dunny has quit IRC23:19
*** fcorrea has quit IRC23:22
*** afd_ has joined #zope3-dev23:27
*** mgedmin has quit IRC23:27
*** afd_____ has joined #zope3-dev23:34
*** davisagli has joined #zope3-dev23:35
*** afd_____ has quit IRC23:43
*** afd__ has quit IRC23:45
*** afd_ has quit IRC23:52
*** Theuni1 has quit IRC23:57

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