*** niemeyer has quit IRC | 00:09 | |
*** Tonteria_ has quit IRC | 00:18 | |
*** jodok has quit IRC | 00:26 | |
*** jkakar has joined #zope3-dev | 00:32 | |
*** ofer has joined #zope3-dev | 00:35 | |
*** tonico is now known as tonico|away | 00:40 | |
*** J1m has quit IRC | 00:46 | |
*** ccomb has joined #zope3-dev | 00:56 | |
*** projekt01 has joined #zope3-dev | 00:56 | |
*** d2m has quit IRC | 01:02 | |
*** benji has quit IRC | 01:03 | |
*** rocky is now known as rocky|Zzz | 01:25 | |
*** yota has quit IRC | 01:27 | |
*** norro has quit IRC | 01:29 | |
*** deo has quit IRC | 01:37 | |
*** rmarianski has quit IRC | 01:46 | |
*** jinty has quit IRC | 01:59 | |
*** ofer has quit IRC | 02:15 | |
*** tarek has joined #zope3-dev | 02:51 | |
*** wrobel has quit IRC | 03:16 | |
*** projekt01 has quit IRC | 03:18 | |
*** ccomb has quit IRC | 04:59 | |
*** whit has quit IRC | 05:30 | |
*** jkakar has quit IRC | 05:46 | |
*** b_52GM has quit IRC | 05:49 | |
*** whit has joined #zope3-dev | 05:51 | |
*** RaFromBRC has quit IRC | 05:58 | |
*** b_52GM has joined #zope3-dev | 06:07 | |
*** b_52Free has joined #zope3-dev | 06:12 | |
*** b_52GM has quit IRC | 06:29 | |
*** whit has quit IRC | 06:33 | |
*** b_52GM has joined #zope3-dev | 06:47 | |
*** b_52Free has quit IRC | 07:04 | |
*** replaceafill has joined #zope3-dev | 08:56 | |
*** b_52GM has quit IRC | 09:17 | |
*** b_52GM has joined #zope3-dev | 09:17 | |
*** b_52Free has joined #zope3-dev | 09:32 | |
*** replaceafill has quit IRC | 09:33 | |
*** b_52GM has quit IRC | 09:50 | |
*** d2m has joined #zope3-dev | 10:07 | |
*** alecm has quit IRC | 10:37 | |
*** jodok has joined #zope3-dev | 10:39 | |
*** philiKON_ has joined #zope3-dev | 11:14 | |
*** pelle_ has joined #zope3-dev | 11:19 | |
*** dunny has quit IRC | 11:27 | |
*** jinty has joined #zope3-dev | 11:33 | |
*** philiKON_ has quit IRC | 11:48 | |
*** jkakar has joined #zope3-dev | 12:01 | |
*** jodok has quit IRC | 12:08 | |
*** jodok has joined #zope3-dev | 12:23 | |
*** jodok has quit IRC | 12:27 | |
*** yota has joined #zope3-dev | 13:05 | |
*** jkakar has quit IRC | 13:47 | |
*** yvl has joined #zope3-dev | 13:51 | |
*** oferw has joined #zope3-dev | 13:58 | |
*** jodok has joined #zope3-dev | 14:42 | |
*** jodok has quit IRC | 14:48 | |
*** dobee has joined #zope3-dev | 15:18 | |
*** pelle_ has quit IRC | 15:26 | |
*** Aiste has quit IRC | 15:45 | |
*** nouri has quit IRC | 15:45 | |
*** nouri has joined #zope3-dev | 15:47 | |
*** Aiste has joined #zope3-dev | 15:47 | |
*** natea has joined #zope3-dev | 15:48 | |
*** oferw has quit IRC | 15:50 | |
*** natea has quit IRC | 15:58 | |
*** jodok has joined #zope3-dev | 16:05 | |
*** natea has joined #zope3-dev | 16:12 | |
*** dobee has quit IRC | 16:56 | |
*** jodok is now known as jodok|snow | 17:02 | |
*** pelle_ has joined #zope3-dev | 17:37 | |
*** oferw has joined #zope3-dev | 17:53 | |
*** pelle_ has quit IRC | 18:05 | |
*** projekt01 has joined #zope3-dev | 18:23 | |
*** dobee has joined #zope3-dev | 18:23 | |
*** rocky|Zzz is now known as rocky|away | 18:31 | |
*** natea has quit IRC | 18:37 | |
*** redir has joined #zope3-dev | 18:44 | |
*** natea has joined #zope3-dev | 18:51 | |
*** natea_ has joined #zope3-dev | 19:14 | |
*** natea has quit IRC | 19:14 | |
*** natea_ has quit IRC | 19:16 | |
*** projekt01 has quit IRC | 19:25 | |
*** yvl has quit IRC | 19:35 | |
*** pelle_ has joined #zope3-dev | 19:44 | |
*** natea has joined #zope3-dev | 19:46 | |
*** oferw has quit IRC | 19:48 | |
*** natea has quit IRC | 19:50 | |
*** jfroche has joined #zope3-dev | 20:39 | |
*** jfroche has quit IRC | 21:02 | |
*** tomus has joined #zope3-dev | 21:30 | |
*** dunny has joined #zope3-dev | 21:38 | |
*** jinty has quit IRC | 21:43 | |
*** J1m has joined #zope3-dev | 21:52 | |
*** philiKON_ has joined #zope3-dev | 21:58 | |
*** philiKON_ is now known as philiKON | 21:59 | |
*** oferw has joined #zope3-dev | 22:03 | |
*** schwendinger has joined #zope3-dev | 22:11 | |
WebMaven | If I want to display information from contained subobjects, sub-subobjects, and so on for a container, is the right way to do this to add a method to a view class that digs into items() repeatedly? | 22:13 |
---|---|---|
*** natea has joined #zope3-dev | 22:20 | |
*** natea_ has joined #zope3-dev | 22:21 | |
WebMaven | That approach works (so far) but it seemed a bit crude. Any suggestions for alternatives? | 22:25 |
WebMaven | Another question: I have a class that implements IContainer, and subclasses (indirectly) Container, but I don't want it to provide the @@container.html view. What do I do? | 22:31 |
*** schwendinger has quit IRC | 22:33 | |
*** schwendinger has joined #zope3-dev | 22:36 | |
*** dunny has quit IRC | 22:40 | |
*** natea has quit IRC | 22:40 | |
J1m | You can register an adapter factory that returns None. | 22:44 |
J1m | Views are just adapters. | 22:44 |
WebMaven | Ah, and that will override the view... Cool. | 22:44 |
J1m | If an adapter factory returns None, the CA behaves as if the factory wasn't found in the first place. | 22:44 |
J1m | yes | 22:44 |
WebMaven | so, lets see. the factory needs to adapt my *specific* Interface, and provide... Hmm. | 22:47 |
WebMaven | trolling through the source, I don't see where the content.html view is hooked in. | 22:48 |
WebMaven | I see find and commontasks | 22:48 |
WebMaven | should I just assume it is named 'contents.html'? | 22:48 |
WebMaven | or is it the name of the class ('Contents')? | 22:53 |
WebMaven | niether seesm right. | 22:53 |
J1m | it's name matches the url | 22:53 |
J1m | so if the url is @@container.html, then the view name is container.html. | 22:54 |
J1m | You said container above. | 22:54 |
WebMaven | Sorry, mistyped. | 22:55 |
*** timte has joined #zope3-dev | 22:55 | |
WebMaven | it is @@contents.html | 22:55 |
WebMaven | So, create a Browser view, and then use zcml to register it for contents.html | 22:56 |
WebMaven | thanks! | 22:57 |
*** opetznick has joined #zope3-dev | 23:11 | |
*** J1m has left #zope3-dev | 23:23 | |
WebMaven | Hmm. | 23:28 |
WebMaven | It's not working. | 23:28 |
WebMaven | I suspect I am not providing the correct Interface. | 23:29 |
WebMaven | This is the ZCML I am using to declare the adapter: | 23:29 |
WebMaven | <adapter | 23:29 |
WebMaven | factory=".course.contentsViewFactory" | 23:29 |
WebMaven | for="rogue.courses.interfaces.ICourse" | 23:29 |
WebMaven | provides="zope.app.container.interfaces.IContainer" | 23:29 |
WebMaven | name="contents.html" | 23:29 |
WebMaven | permission="zope.View" /> | 23:29 |
*** redir has quit IRC | 23:30 | |
WebMaven | It *looks* right... | 23:33 |
*** jodok|snow has quit IRC | 23:40 | |
WebMaven | I tried this one too, still no go: | 23:43 |
WebMaven | <adapter | 23:44 |
WebMaven | factory=".course.contentsViewFactory" | 23:44 |
WebMaven | for="rogue.courses.interfaces.ICourse" | 23:44 |
WebMaven | provides="zope.app.container.interfaces.IContainerNamesContainer" | 23:44 |
WebMaven | name="contents.html" | 23:44 |
WebMaven | permission="zope.View" /> | 23:44 |
WebMaven | Actually, I think I have now tried every reasonable guess I could, IItemContainer, IReadContainer, etc. | 23:49 |
WebMaven | None of them seems to have any effect. | 23:49 |
WebMaven | somehow, the 'contents.html' view is always adapted. | 23:50 |
*** oferw has quit IRC | 23:54 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!