*** whit is now known as whit|latelunch | 00:09 | |
*** timte has quit IRC | 00:20 | |
*** baijum has quit IRC | 00:22 | |
*** natea has joined #zope3-dev | 00:26 | |
*** philiKON_ has joined #zope3-dev | 00:31 | |
*** gumpa has quit IRC | 00:35 | |
*** philiKON has quit IRC | 00:38 | |
*** WebMaven has joined #zope3-dev | 00:50 | |
*** norro has quit IRC | 00:55 | |
*** flox has quit IRC | 01:06 | |
*** natea_ has joined #zope3-dev | 01:19 | |
*** whit has joined #zope3-dev | 01:22 | |
*** whit|latelunch has quit IRC | 01:22 | |
*** yota has quit IRC | 01:22 | |
*** whit has quit IRC | 01:22 | |
*** whit has joined #zope3-dev | 01:23 | |
*** whitmo has joined #zope3-dev | 01:25 | |
*** whit has quit IRC | 01:25 | |
*** J1m has quit IRC | 01:26 | |
*** HakTom has quit IRC | 01:28 | |
*** natea has quit IRC | 01:34 | |
*** whitmo has quit IRC | 01:34 | |
*** vlado has joined #zope3-dev | 01:35 | |
*** whit has joined #zope3-dev | 01:35 | |
*** kobold has left #zope3-dev | 01:36 | |
*** baijum has joined #zope3-dev | 01:48 | |
*** jfroche_ has quit IRC | 02:05 | |
*** andrew_m has joined #zope3-dev | 02:10 | |
*** natea has joined #zope3-dev | 02:11 | |
*** vlado has quit IRC | 02:11 | |
*** andrew_m has quit IRC | 02:12 | |
*** ksmith99 has joined #zope3-dev | 02:14 | |
*** andrew_m has joined #zope3-dev | 02:15 | |
*** RaFromBRC has left #zope3-dev | 02:16 | |
*** natea_ has quit IRC | 02:27 | |
*** rocky|away has quit IRC | 02:27 | |
autocoder | I am fighting with TAL on zope 3. I want to iterate over the content objects in a folder. I have tried <tr tal:repeat="item container/objectValues">, as indicated by many examples and <tr tal:repeat="item container/items()"> as indicated by my own brilliant analysis using the intropector. Neither works and I see complaints in the log. Can anybody discuss this with me? | 02:33 |
---|---|---|
srichter | autocoder: "container" is a Zope 2 specific top-level namespace in ZPTs | 02:34 |
ksmith99 | looks like a zope2 tal guide, try context/objectValues | 02:34 |
*** philiKON_ has quit IRC | 02:34 | |
srichter | will also not work | 02:34 |
srichter | context/values would be correct | 02:35 |
srichter | but I do not think that autocoder develops Python-based views | 02:35 |
srichter | autocoder: page template development through the web is not supported by us | 02:35 |
srichter | autocoder: I suggest getting one of the books; philiKON's 3nd edition just came out I have heard | 02:36 |
autocoder | I am a jack of all trades and this is my first experience with either python or zope. All advice is welcome. | 02:37 |
autocoder | Let me try the path correction.... | 02:37 |
srichter | please, please, please do not use TTW development in Zope 3 | 02:37 |
autocoder | Smokin'! That fixed that path. Apparently it is not my only bogus path. | 02:38 |
autocoder | I am only doing this because the configuration is so complex that I can;t be sure of what I have. | 02:39 |
autocoder | I will remove it an put it in a pt file in the filesystem when I have something that works. | 02:39 |
autocoder | Then I have one fewer thing to cause problems. | 02:40 |
alecm | autocoder: The IContainer api is dictionary-like so "context/values" gives you objects "context/keys" gives you ids and "context/items" gives you both (in tuples) | 02:41 |
autocoder | So, given this:<tr tal:repeat="item context/values"> I also call this: <td tal:content="item/id"></td> but apparently "id" is bugus. Threre should be a list of these paths somewhere. Can I see them with the introspector? | 02:41 |
autocoder | O.K. That;s a bug help. Let me digest that for a second.... | 02:42 |
autocoder | O.K. That;s a big help. Let me digest that for a second.... | 02:42 |
autocoder | Once I have the item from the "repeat" then I have a reference to my content objects and I can reference my properties? What are my inherited properties? | 02:44 |
srichter | they differ based on the objects you get | 02:45 |
*** niemeyer has quit IRC | 02:47 | |
autocoder | So, in my case item/id is causeing problems. I didn't create a property called id, and apparently I ddin't inherit one. I subclassed persistent to create my object. I should be able to see the persistent properties, right? | 02:47 |
srichter | Persistent does not provide any properties | 02:47 |
autocoder | Well, then I report with pride, that I see them all. :-) | 02:48 |
srichter | the id has to be accessed via zapi.name(); I think in TAL you can use item/zapi:name | 02:48 |
autocoder | If you were not so gracious as to tell me these things, how would I know them? They must be in the zope classes somewhere and I'm now quite good at finding things. Where could I find zapi:name? | 02:49 |
srichter | get one of the Zope 3 books | 02:50 |
srichter | they give you a very systematic approach of learning Zope 3 | 02:50 |
srichter | Philipp's second edition just came out, so it is uptodate | 02:50 |
autocoder | Well, that will be a huge improvement over wondering around in the dark and stumbling over Zope 2 docs and examples.... | 02:51 |
srichter | also, after starting Zope 3, you can check out: http://localhost:8080/++apidoc++ | 02:51 |
srichter | it is much more low-level, but good reference material | 02:51 |
autocoder | Yes!!! I vaguely remember seeing this last week and not having any idea how to understand it. Now it looks like water in the desert. | 02:53 |
*** ignas_ has quit IRC | 02:56 | |
autocoder | srichter, Thanks very much for your help. I have renewed enthusiasm. Which book do you recommend? | 02:58 |
*** hazmat has quit IRC | 03:02 | |
*** natea_ has joined #zope3-dev | 03:03 | |
*** natea has quit IRC | 03:11 | |
jkakar | grepping through source code isn't helping me today... :) uh, is there an easy way to get the current pricipal? | 03:23 |
*** wrobel has quit IRC | 03:25 | |
*** whitmo has joined #zope3-dev | 03:30 | |
*** whit has quit IRC | 03:30 | |
*** stub has joined #zope3-dev | 03:42 | |
*** natea has joined #zope3-dev | 03:56 | |
srichter | autocoder: buy Philipp's new edition and mine of course too ;-) (mine is a bit outdated but the concepts still stand) | 04:05 |
srichter | jkakar: request.principal | 04:05 |
jkakar | srichter: Ah, that's what I thought... I was hoping there was a better way (ie: singleton access). Thanks! | 04:06 |
srichter | I think this is the best way possible :-) | 04:06 |
srichter | in Python things like this are not typically done with singeltons; we are not in JAva land here :-) | 04:07 |
jkakar | srichter: Yeah, I see the value in that; however, being forced to pass request around can be problematic. I suppose it's six of one, half-a-dozen of the other. | 04:08 |
srichter | needing the principal anywhere else than presentation code is often a design flaw | 04:11 |
srichter | if it is not, you can work a little harder by getting at the interaction | 04:11 |
jkakar | srichter: Agreed. | 04:11 |
* jkakar runs away | 04:12 | |
*** natea_ has quit IRC | 04:12 | |
*** natea_ has joined #zope3-dev | 04:48 | |
*** natea has quit IRC | 05:05 | |
*** Aiste has joined #zope3-dev | 05:14 | |
*** ktwilight_ has quit IRC | 05:35 | |
*** ktwilight has joined #zope3-dev | 05:37 | |
*** Aiste has quit IRC | 05:39 | |
*** reco has quit IRC | 05:45 | |
*** hazmat has joined #zope3-dev | 06:01 | |
*** ChanServ sets mode: +o hazmat | 06:01 | |
*** d2m has quit IRC | 06:01 | |
*** d21 has joined #zope3-dev | 06:01 | |
*** natea has joined #zope3-dev | 06:11 | |
*** natea_ has quit IRC | 06:26 | |
*** natea_ has joined #zope3-dev | 07:03 | |
*** natea has quit IRC | 07:12 | |
*** dobee_ has joined #zope3-dev | 07:17 | |
*** dobee_ has quit IRC | 07:36 | |
*** alecm has quit IRC | 07:46 | |
*** dobee has joined #zope3-dev | 07:52 | |
*** hazmat has quit IRC | 07:55 | |
*** natea has joined #zope3-dev | 07:55 | |
*** natea_ has quit IRC | 08:11 | |
*** eins has joined #zope3-dev | 08:16 | |
*** sureshvv has joined #zope3-dev | 08:26 | |
*** zagy has joined #zope3-dev | 08:42 | |
*** natea_ has joined #zope3-dev | 08:48 | |
*** philiKON has joined #zope3-dev | 08:59 | |
*** Aiste has joined #zope3-dev | 09:04 | |
*** natea has quit IRC | 09:04 | |
*** dlk has joined #zope3-dev | 09:05 | |
*** opetznick has joined #zope3-dev | 09:11 | |
*** d21 has left #zope3-dev | 09:15 | |
*** timte has joined #zope3-dev | 09:29 | |
*** hdima has joined #zope3-dev | 09:31 | |
*** natea has joined #zope3-dev | 09:40 | |
*** jkakar has quit IRC | 09:43 | |
*** Aiste has quit IRC | 09:49 | |
*** natea_ has quit IRC | 09:57 | |
*** baijum has quit IRC | 10:12 | |
*** HakTom has joined #zope3-dev | 10:13 | |
*** jfroche has joined #zope3-dev | 10:28 | |
*** HakTom has quit IRC | 10:28 | |
*** wrobel has joined #zope3-dev | 10:28 | |
*** ktwilight_ has joined #zope3-dev | 10:30 | |
*** natea_ has joined #zope3-dev | 10:32 | |
*** natea has quit IRC | 10:41 | |
*** tarek has joined #zope3-dev | 10:42 | |
*** ktwilight has quit IRC | 10:44 | |
*** flox has joined #zope3-dev | 10:46 | |
*** yota has joined #zope3-dev | 10:48 | |
*** kobold has joined #zope3-dev | 10:52 | |
*** harobed has joined #zope3-dev | 10:57 | |
*** ignas has joined #zope3-dev | 10:59 | |
*** natea has joined #zope3-dev | 11:25 | |
*** natea_ has quit IRC | 11:42 | |
*** WebMaven has left #zope3-dev | 11:45 | |
*** stub has quit IRC | 11:45 | |
*** stub has joined #zope3-dev | 11:45 | |
*** dunny has quit IRC | 12:00 | |
*** WebMaven has joined #zope3-dev | 12:07 | |
*** henri_ has joined #zope3-dev | 12:16 | |
*** WebMaven has quit IRC | 12:27 | |
*** projekt01 has joined #zope3-dev | 12:32 | |
*** natea_ has joined #zope3-dev | 12:47 | |
*** jinty has joined #zope3-dev | 12:48 | |
*** strichter has joined #zope3-dev | 12:53 | |
*** mgedmin has joined #zope3-dev | 12:54 | |
*** srichter has quit IRC | 13:01 | |
*** natea has quit IRC | 13:03 | |
*** d2m has joined #zope3-dev | 13:07 | |
*** niemeyer has joined #zope3-dev | 13:14 | |
*** natea has joined #zope3-dev | 13:40 | |
*** natea_ has quit IRC | 13:57 | |
*** rocky has joined #zope3-dev | 14:15 | |
*** stub has quit IRC | 14:23 | |
*** deo has quit IRC | 14:31 | |
*** strichter is now known as srichter | 14:32 | |
*** ChanServ sets mode: +o srichter | 14:32 | |
*** SmokeyD has quit IRC | 14:57 | |
*** hazmat has joined #zope3-dev | 15:01 | |
*** ChanServ sets mode: +o hazmat | 15:01 | |
*** natea_ has joined #zope3-dev | 15:03 | |
*** HakTom has joined #zope3-dev | 15:03 | |
*** alga has joined #zope3-dev | 15:06 | |
*** natea has quit IRC | 15:18 | |
*** romanofski has joined #zope3-dev | 15:21 | |
*** kobold has left #zope3-dev | 15:26 | |
*** SteveA has quit IRC | 15:30 | |
*** SteveA has joined #zope3-dev | 15:30 | |
*** hazmat has quit IRC | 15:32 | |
*** mgedmin has quit IRC | 15:53 | |
*** hazmat has joined #zope3-dev | 15:53 | |
*** ChanServ sets mode: +o hazmat | 15:53 | |
*** henri_ has left #zope3-dev | 15:54 | |
*** natea has joined #zope3-dev | 15:55 | |
*** natea_ has quit IRC | 16:02 | |
*** HakTom has quit IRC | 16:09 | |
*** Aiste has joined #zope3-dev | 16:28 | |
*** gumpa has joined #zope3-dev | 16:29 | |
*** J1m has joined #zope3-dev | 16:45 | |
*** b_52Free has joined #zope3-dev | 16:48 | |
*** __mac__ has quit IRC | 16:48 | |
*** hazmat has quit IRC | 16:49 | |
*** hazmat has joined #zope3-dev | 17:02 | |
*** ChanServ sets mode: +o hazmat | 17:02 | |
*** eins has quit IRC | 17:12 | |
*** dobee has quit IRC | 17:15 | |
*** natea_ has joined #zope3-dev | 17:17 | |
*** opetznick has quit IRC | 17:24 | |
*** dobee has joined #zope3-dev | 17:27 | |
*** BjornT has quit IRC | 17:28 | |
*** jinty has quit IRC | 17:28 | |
*** flox has quit IRC | 17:29 | |
*** hdima has quit IRC | 17:33 | |
*** natea has quit IRC | 17:33 | |
*** BjornT has joined #zope3-dev | 17:36 | |
*** opetznick has joined #zope3-dev | 17:49 | |
*** dlk has left #zope3-dev | 18:05 | |
*** henri_ has joined #zope3-dev | 18:14 | |
*** zagy has quit IRC | 18:19 | |
*** romanofs1i has joined #zope3-dev | 18:21 | |
*** projekt01 has quit IRC | 18:23 | |
*** reco has joined #zope3-dev | 18:27 | |
*** tarek has left #zope3-dev | 18:30 | |
*** jinty has joined #zope3-dev | 18:31 | |
*** mkerrin has joined #zope3-dev | 18:33 | |
*** jinty has quit IRC | 18:37 | |
*** natea has joined #zope3-dev | 18:40 | |
*** romanofski has quit IRC | 18:44 | |
*** alecm has joined #zope3-dev | 18:48 | |
*** BjornT has quit IRC | 18:49 | |
*** BjornT has joined #zope3-dev | 18:49 | |
*** ksmith99 has quit IRC | 18:51 | |
*** henri_ has quit IRC | 18:53 | |
*** Aiste has quit IRC | 18:54 | |
*** philiKON has quit IRC | 18:54 | |
*** dobee has quit IRC | 18:55 | |
*** natea_ has quit IRC | 18:56 | |
*** Aiste has joined #zope3-dev | 19:00 | |
*** opetznick has quit IRC | 19:00 | |
*** dobee has joined #zope3-dev | 19:00 | |
*** hazmat has quit IRC | 19:07 | |
*** harobed has quit IRC | 19:07 | |
*** stub has joined #zope3-dev | 19:10 | |
*** dobee has quit IRC | 19:12 | |
*** hazmat has joined #zope3-dev | 19:14 | |
*** ChanServ sets mode: +o hazmat | 19:14 | |
*** jkakar has joined #zope3-dev | 19:23 | |
*** whitmo is now known as whit | 19:25 | |
*** opetznick has joined #zope3-dev | 19:29 | |
*** natea_ has joined #zope3-dev | 20:02 | |
*** RaFromBRC has joined #zope3-dev | 20:03 | |
*** zagy has joined #zope3-dev | 20:09 | |
*** natea has quit IRC | 20:18 | |
*** stub has quit IRC | 20:31 | |
*** Aiste has quit IRC | 20:34 | |
ignas | anyone with commit access for zc.datewidget ? | 20:40 |
*** natea has joined #zope3-dev | 20:55 | |
*** zagy has quit IRC | 20:59 | |
*** zagy has joined #zope3-dev | 21:07 | |
*** zagy has quit IRC | 21:08 | |
*** natea_ has quit IRC | 21:11 | |
*** tonico is now known as tonico|away | 21:14 | |
*** mgedmin has joined #zope3-dev | 21:14 | |
*** dunny has joined #zope3-dev | 21:33 | |
*** WebMaven has joined #zope3-dev | 21:49 | |
*** hazmat has quit IRC | 21:57 | |
autocoder | srichter, neither B&N nor Borders carry your book or Phillips book -- meaning you can get it from their stock, but not from the shelves in the store. B&N additionally will not get Phillips book from their stock unless the reader agreees to a no-return policy. I thought you should know that there is a shelf full of Ruby on Rails stuff and not one book on Zope (2 or 3). | 21:58 |
*** jinty has joined #zope3-dev | 21:58 | |
autocoder | I have both bookd coming from Borders. | 21:58 |
autocoder | so, in the meantime, can somebody tell me what @@standard_macros give my in TAL? Is this the way Zope creates display layout dascipline without using frames? | 22:00 |
d2m | autocoder: @@something tells zope3 to look for a view class instead of a content object of the same name | 22:01 |
*** natea is now known as natea|away | 22:05 | |
*** jinty has quit IRC | 22:07 | |
*** natea has joined #zope3-dev | 22:17 | |
*** mgedmin has quit IRC | 22:19 | |
autocoder | d2m, more and more I am thinking that my deficiency in python is a limiting factor. I assume a view class is somehow different from content objects and that is an artifact of python, not just a zope design decision. Am I right? | 22:20 |
*** mkerrin has quit IRC | 22:21 | |
d2m | autocoder: you need to read a book on the topic, this one (http://worldcookery.com/About) has just been published in second edition | 22:24 |
*** deo has joined #zope3-dev | 22:25 | |
autocoder | Yes. It is on the way. Not ten minutes ago I mentioned Border's and B&N policy. | 22:25 |
autocoder | d2m, I'd like to trace this directive to something tangible in the code so the next time I encounter something unknown I will know where to look. Can you tell me where I would look to find @@standard_macros in the code? | 22:26 |
d2m | autocoder: grep .zcml files for the name 'standard_macros' | 22:26 |
autocoder | O.K. ... | 22:27 |
autocoder | I found app/rotterdam/configure.zcml. There is a browser:page directive. It tells me to look at the class .standardmacros.StandardMacros. So far, so good... | 22:30 |
*** natea|away has quit IRC | 22:32 | |
autocoder | StandardMacros subclasses the basic skin StandardMacros... | 22:33 |
autocoder | Now, look at this. I;ve already learned something. I see macro page names that are referenced in the TALES path. I don't know what it means yet, but i recognize it. | 22:34 |
autocoder | d2m, Apparently I don't understand enough about python to understand how this class works. StandardMacros has one property -- macro_pages(...), so I can't see how that does anything. Can you give me another hint? | 22:37 |
*** hazmat has joined #zope3-dev | 22:49 | |
*** ChanServ sets mode: +o hazmat | 22:49 | |
*** hazmat has quit IRC | 22:50 | |
*** opetznick has quit IRC | 23:05 | |
*** natea_ has joined #zope3-dev | 23:10 | |
*** natea has quit IRC | 23:17 | |
*** hazmat has joined #zope3-dev | 23:19 | |
*** ChanServ sets mode: +o hazmat | 23:19 | |
*** RaFromBRC is now known as RaFromBRC|lunch | 23:20 | |
rocky | any chance someone around me can explain the steps i need to take to implement my own adapter that provides the dublincore stuff? | 23:30 |
rocky | i tried providing my own IWriteZopeDublinCore adapter which enables me to set certain custom attributes, but other dc attributes i want to default back to the standard attributeannotatable one | 23:31 |
*** rocky is now known as rocky|away | 23:44 | |
*** hazmat has quit IRC | 23:45 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!