*** matthal has quit IRC | 00:06 | |
*** redir_ has quit IRC | 00:14 | |
*** afd__ has quit IRC | 00:23 | |
*** sben has joined #zope3-dev | 00:25 | |
*** sben has quit IRC | 00:31 | |
*** SpeedyGhost has quit IRC | 00:35 | |
*** gary_poster has quit IRC | 00:37 | |
*** Theuni1 has joined #zope3-dev | 00:40 | |
*** markusleist has joined #zope3-dev | 00:44 | |
*** sm has quit IRC | 00:54 | |
*** romanofski has joined #zope3-dev | 00:55 | |
*** aaronv has quit IRC | 01:06 | |
*** menesis has quit IRC | 01:07 | |
*** matthal has joined #zope3-dev | 01:07 | |
*** Theuni1 has quit IRC | 01:18 | |
*** mcdonc has quit IRC | 01:25 | |
*** mcdonc has joined #zope3-dev | 01:29 | |
*** ignas has quit IRC | 01:34 | |
*** sben has joined #zope3-dev | 01:39 | |
*** pcardune_ has joined #zope3-dev | 01:57 | |
*** davisagli has left #zope3-dev | 02:07 | |
*** pcardune has quit IRC | 02:14 | |
*** pcardune_ is now known as pcardune | 02:14 | |
*** pcardune_ has joined #zope3-dev | 02:17 | |
*** pcardune has quit IRC | 02:36 | |
*** pcardune_ is now known as pcardune | 02:36 | |
*** pcardune has quit IRC | 02:43 | |
*** pcardune has joined #zope3-dev | 02:43 | |
*** jfkw has quit IRC | 03:29 | |
*** davisagli has joined #zope3-dev | 03:43 | |
*** huajie has joined #zope3-dev | 03:48 | |
*** alecm has quit IRC | 04:08 | |
*** pcardune has quit IRC | 04:22 | |
*** jhauser_ has joined #zope3-dev | 04:25 | |
*** jhauser has quit IRC | 04:42 | |
*** jhauser_ is now known as jhauser | 04:42 | |
*** do3cc has quit IRC | 04:42 | |
*** kiorky has quit IRC | 04:42 | |
*** benji has quit IRC | 04:43 | |
*** benji has joined #zope3-dev | 04:44 | |
*** fcorrea has joined #zope3-dev | 04:45 | |
*** kiorky has joined #zope3-dev | 04:49 | |
*** do3cc has joined #zope3-dev | 05:15 | |
*** davisagli has quit IRC | 05:34 | |
*** kiorky has quit IRC | 05:39 | |
*** markusleist has quit IRC | 05:39 | |
*** jpcw has quit IRC | 05:39 | |
*** do3cc has quit IRC | 05:39 | |
*** BjornT_ has quit IRC | 05:39 | |
*** davisagli has joined #zope3-dev | 05:39 | |
*** do3cc has joined #zope3-dev | 05:39 | |
*** kiorky has joined #zope3-dev | 05:39 | |
*** markusleist has joined #zope3-dev | 05:39 | |
*** BjornT_ has joined #zope3-dev | 05:39 | |
*** jpcw has joined #zope3-dev | 05:39 | |
*** stub has joined #zope3-dev | 06:09 | |
*** mcdonc has quit IRC | 06:17 | |
*** mcdonc has joined #zope3-dev | 06:18 | |
*** afd__ has joined #zope3-dev | 07:19 | |
*** matthal has quit IRC | 07:41 | |
*** kaeru has quit IRC | 07:47 | |
*** Theuni1 has joined #zope3-dev | 07:57 | |
*** sweh has joined #zope3-dev | 08:12 | |
*** zagy has joined #zope3-dev | 08:12 | |
*** zagy has quit IRC | 08:13 | |
*** yotaff has joined #zope3-dev | 08:41 | |
*** Theuni1 has quit IRC | 08:51 | |
*** Theuni1 has joined #zope3-dev | 08:52 | |
*** huajie has left #zope3-dev | 09:00 | |
*** sweh has quit IRC | 09:09 | |
*** __mac__ has joined #zope3-dev | 09:11 | |
*** jpcw has quit IRC | 09:17 | |
*** sweh has joined #zope3-dev | 09:31 | |
*** agroszer_ has joined #zope3-dev | 09:32 | |
*** projekt01 has joined #zope3-dev | 09:38 | |
*** matthal has joined #zope3-dev | 09:41 | |
*** romanofski has quit IRC | 09:45 | |
*** agroszer_ is now known as agroszer | 10:06 | |
*** jukart has joined #zope3-dev | 10:12 | |
*** junkafarian has joined #zope3-dev | 10:35 | |
*** iham has joined #zope3-dev | 10:37 | |
*** markusleist has quit IRC | 10:47 | |
*** romanofski has joined #zope3-dev | 10:53 | |
*** matthal has quit IRC | 10:58 | |
*** jpcw has joined #zope3-dev | 11:01 | |
*** zagy has joined #zope3-dev | 11:02 | |
*** zagy has quit IRC | 11:02 | |
*** jhauser has quit IRC | 11:08 | |
*** zagy has joined #zope3-dev | 11:12 | |
*** zagy has quit IRC | 11:13 | |
*** MJ has joined #zope3-dev | 11:26 | |
*** junkafarian has quit IRC | 11:34 | |
*** fRiSi has joined #zope3-dev | 11:34 | |
*** menesis has joined #zope3-dev | 11:43 | |
*** fRiSi has quit IRC | 12:01 | |
*** __mac__ has quit IRC | 12:30 | |
*** iham has quit IRC | 12:31 | |
*** __mac__ has joined #zope3-dev | 12:33 | |
*** Count-Duckula has joined #zope3-dev | 12:46 | |
*** mintsauce has joined #zope3-dev | 12:51 | |
mintsauce | So ... 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 IRC | 12:58 | |
kobold | mintsauce: it sounds reasonable, although I would do it with a ICommentable(object) adapter, so you can change the implementation later if needed | 12:59 |
mintsauce | ICommentable? Haven't come across that before. | 12:59 |
kobold | mintsauce: you can create an interface ICommentable and write an adapter that stores the comments in the PersistentDict | 13:00 |
* mintsauce feeds his im-sure-zope3-does-this-already paranoia | 13:00 | |
kobold | mintsauce: later, you can decide to store the comments somewhere else without changing the API (eg. you have a different adapter) | 13:00 |
mintsauce | A bit like IAnnotations? | 13:01 |
kobold | mintsauce: yep, that was my idea | 13:01 |
mintsauce | How to implement commenting the best way - http://article.gmane.org/gmane.comp.web.zope.plone.devel/17314 | 13:02 |
mintsauce | kobold: Do you have a Zope3 example? | 13:05 |
kobold | mintsauce: not really, as I don't use zodb, but I don't think it is too complex | 13:06 |
kobold | mintsauce: in fact, the IAttributeAnnotatable stuff is probably the best example for you | 13:07 |
mintsauce | ICommentable isn't part of the API? Is it just a custom annotation? | 13:08 |
kobold | mintsauce: no, it is not part of the zope 3 API, it was just an example | 13:09 |
kobold | = 12:00:16 < kobold> mintsauce: you can create an interface ICommentable and write an adapter that stores the comments in the PersistentDict | 13:10 |
mintsauce | Sorry, I see now :) | 13:10 |
*** romanofski has quit IRC | 13:13 | |
*** mcdonc has quit IRC | 13:20 | |
*** fcorrea has quit IRC | 13:21 | |
*** mintsauce has quit IRC | 13:39 | |
*** menesis has quit IRC | 13:46 | |
*** menesis has joined #zope3-dev | 13:48 | |
*** fcorrea has joined #zope3-dev | 13:56 | |
*** allisterb_ has joined #zope3-dev | 13:57 | |
*** dunny has quit IRC | 14:00 | |
*** dunny has joined #zope3-dev | 14:02 | |
*** allisterb has quit IRC | 14:07 | |
*** yvl has joined #zope3-dev | 14:21 | |
*** jhauser has joined #zope3-dev | 14:25 | |
*** stub has quit IRC | 14:33 | |
*** junkafarian has joined #zope3-dev | 15:09 | |
*** Aiste has joined #zope3-dev | 15:17 | |
*** mgedmin has joined #zope3-dev | 15:22 | |
*** lamike has joined #zope3-dev | 15:23 | |
*** lamike has left #zope3-dev | 15:23 | |
*** tarek has quit IRC | 15:40 | |
*** tarek has joined #zope3-dev | 15:46 | |
*** tarek has quit IRC | 16:03 | |
*** tarek has joined #zope3-dev | 16:04 | |
*** ignas has joined #zope3-dev | 16:06 | |
*** reinout has joined #zope3-dev | 16:06 | |
*** jhauser has quit IRC | 16:11 | |
*** tarek has quit IRC | 16:17 | |
*** tarek has joined #zope3-dev | 16:17 | |
*** jpcw has quit IRC | 16:42 | |
*** tarek has quit IRC | 16:48 | |
*** tarek has joined #zope3-dev | 16:49 | |
*** reinout has quit IRC | 16:52 | |
*** jpcw has joined #zope3-dev | 16:53 | |
*** mkerrin has joined #zope3-dev | 16:56 | |
*** aaronv has joined #zope3-dev | 16:59 | |
*** tarek has quit IRC | 17:01 | |
*** tarek has joined #zope3-dev | 17:01 | |
*** aaronv has quit IRC | 17:10 | |
*** aaronv has joined #zope3-dev | 17:16 | |
*** junkafarian has quit IRC | 17:38 | |
*** junkafarian has joined #zope3-dev | 17:40 | |
*** projekt01 has quit IRC | 17:40 | |
*** allisterb_ has quit IRC | 17:40 | |
*** mcdonc has joined #zope3-dev | 17:53 | |
*** sweh has quit IRC | 17:54 | |
*** tarek_ has joined #zope3-dev | 17:55 | |
*** tarek has quit IRC | 18:02 | |
*** Theuni1 has quit IRC | 18:10 | |
*** Theuni1 has joined #zope3-dev | 18:10 | |
*** jhauser has joined #zope3-dev | 18:19 | |
*** aaronv has quit IRC | 18:20 | |
*** mkerrin has left #zope3-dev | 18:22 | |
*** jhauser has quit IRC | 18:22 | |
*** tarek_ has quit IRC | 18:28 | |
*** ignas has quit IRC | 18:29 | |
*** __mac___ has joined #zope3-dev | 18:29 | |
*** Theuni2 has joined #zope3-dev | 18:29 | |
*** Theuni1 has quit IRC | 18:31 | |
*** Theuni2 has quit IRC | 18:34 | |
*** jukart has quit IRC | 18:35 | |
*** __mac___ has quit IRC | 18:35 | |
*** __mac___ has joined #zope3-dev | 18:35 | |
*** tarek_ has joined #zope3-dev | 18:36 | |
*** __mac__ has quit IRC | 18:37 | |
*** __mac___ is now known as __mac__ | 18:37 | |
*** Theuni1 has joined #zope3-dev | 18:38 | |
*** jhauser has joined #zope3-dev | 18:42 | |
*** davisagli has joined #zope3-dev | 18:49 | |
*** MJ has quit IRC | 18:52 | |
*** __mac__ has quit IRC | 18:58 | |
*** tarek_ has quit IRC | 19:11 | |
*** tarek has joined #zope3-dev | 19:15 | |
*** aaronv has joined #zope3-dev | 19:21 | |
*** jpcw has quit IRC | 19:23 | |
*** Aiste has quit IRC | 19:25 | |
*** ignas has joined #zope3-dev | 19:27 | |
*** tarek has quit IRC | 19:29 | |
*** tarek has joined #zope3-dev | 19:29 | |
*** Count-Duckula has quit IRC | 19:38 | |
*** benji has quit IRC | 19:39 | |
*** aaronv has quit IRC | 19:41 | |
*** fcorrea has quit IRC | 19:42 | |
*** agroszer has quit IRC | 19:44 | |
*** agroszer_ has joined #zope3-dev | 19:44 | |
*** ignas has quit IRC | 19:53 | |
*** davisagli has quit IRC | 19:55 | |
*** menesis has quit IRC | 20:00 | |
*** menesis has joined #zope3-dev | 20:01 | |
*** tarek has quit IRC | 20:05 | |
*** tarek has joined #zope3-dev | 20:05 | |
*** davisagli has joined #zope3-dev | 20:11 | |
*** agroszer_ has quit IRC | 20:14 | |
*** agroszer__ has joined #zope3-dev | 20:14 | |
*** tarek has quit IRC | 20:17 | |
*** tarek has joined #zope3-dev | 20:18 | |
*** fcorrea has joined #zope3-dev | 20:25 | |
*** tarek has quit IRC | 20:34 | |
*** tarek__ has joined #zope3-dev | 20:36 | |
*** aaronv has joined #zope3-dev | 20:43 | |
*** ignas has joined #zope3-dev | 20:51 | |
*** aaronv has quit IRC | 20:53 | |
*** ignas has quit IRC | 21:17 | |
*** grahal has joined #zope3-dev | 21:24 | |
*** markusleist has joined #zope3-dev | 21:28 | |
grahal | i'm getting error | 21: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 |
grahal | TypeError: There isn't enough context to get URL information. This is probably due to a bug in setting up location information. | 21:30 |
grahal | but I'm sure I am to blame | 21:30 |
grahal | so I was wondering if I can access view context in zope3 debugger | 21:31 |
*** yotaff has quit IRC | 21:42 | |
*** markusleist has quit IRC | 21:48 | |
mgedmin | zope3 has a debugger? | 21:49 |
mgedmin | the error is caused by some object no having __parent__ and __name__ set properly | 21:49 |
mgedmin | if you're running zope as a wsgi app, you can use the WebError middleware to get a nice interactive Python console in your browser | 21:50 |
*** markusleist has joined #zope3-dev | 21:55 | |
grahal | mgedmin: ok, postmortemhttpdebugger as mentioned in zope3 book worked fine | 22:06 |
*** aaronv has joined #zope3-dev | 22:06 | |
mgedmin | cool, I'd completely forgotten about it | 22:06 |
grahal | but i'll have a look on tihs | 22:06 |
grahal | i'm new on zope and wsgi world so need to go slow :) | 22:06 |
grahal | another question | 22:07 |
grahal | <a tal:content="system/hypervisor" | 22:07 |
grahal | tal:attributes="href string:${system/hypervisor/@@absolute_url}/"></a> | 22:07 |
grahal | the problem is that hypervisor is a method, not a attribute | 22:07 |
grahal | that is the error | 22:07 |
grahal | what should I do then? hypervisor method returns hypervisor object | 22:07 |
mgedmin | <a tal:define="hypervisor system/hypervisor" tal:content="hypervisor" tal:attributes="href hypervisor/@@absolute_url" /> | 22:08 |
mgedmin | methods get called if they're at the end of a path expression | 22:08 |
grahal | hmm | 22:08 |
mgedmin | by using a tal:define you force system.hypervisor() to be at the end | 22:08 |
grahal | got it | 22:10 |
grahal | will try thanks | 22:10 |
*** allisterb has joined #zope3-dev | 22:20 | |
*** matthal has joined #zope3-dev | 22:22 | |
*** agroszer__ has quit IRC | 22:26 | |
*** davisagli has quit IRC | 22:32 | |
*** aaronv has quit IRC | 22:50 | |
*** dunny has quit IRC | 23:19 | |
*** fcorrea has quit IRC | 23:22 | |
*** afd_ has joined #zope3-dev | 23:27 | |
*** mgedmin has quit IRC | 23:27 | |
*** afd_____ has joined #zope3-dev | 23:34 | |
*** davisagli has joined #zope3-dev | 23:35 | |
*** afd_____ has quit IRC | 23:43 | |
*** afd__ has quit IRC | 23:45 | |
*** afd_ has quit IRC | 23:52 | |
*** Theuni1 has quit IRC | 23:57 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!