IRC log of #zope3-dev for Friday, 2006-12-01

*** whit is now known as whit|latelunch00:09
*** timte has quit IRC00:20
*** baijum has quit IRC00:22
*** natea has joined #zope3-dev00:26
*** philiKON_ has joined #zope3-dev00:31
*** gumpa has quit IRC00:35
*** philiKON has quit IRC00:38
*** WebMaven has joined #zope3-dev00:50
*** norro has quit IRC00:55
*** flox has quit IRC01:06
*** natea_ has joined #zope3-dev01:19
*** whit has joined #zope3-dev01:22
*** whit|latelunch has quit IRC01:22
*** yota has quit IRC01:22
*** whit has quit IRC01:22
*** whit has joined #zope3-dev01:23
*** whitmo has joined #zope3-dev01:25
*** whit has quit IRC01:25
*** J1m has quit IRC01:26
*** HakTom has quit IRC01:28
*** natea has quit IRC01:34
*** whitmo has quit IRC01:34
*** vlado has joined #zope3-dev01:35
*** whit has joined #zope3-dev01:35
*** kobold has left #zope3-dev01:36
*** baijum has joined #zope3-dev01:48
*** jfroche_ has quit IRC02:05
*** andrew_m has joined #zope3-dev02:10
*** natea has joined #zope3-dev02:11
*** vlado has quit IRC02:11
*** andrew_m has quit IRC02:12
*** ksmith99 has joined #zope3-dev02:14
*** andrew_m has joined #zope3-dev02:15
*** RaFromBRC has left #zope3-dev02:16
*** natea_ has quit IRC02:27
*** rocky|away has quit IRC02:27
autocoderI 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
srichterautocoder: "container" is a Zope 2 specific top-level namespace in ZPTs02:34
ksmith99looks like a zope2 tal guide, try context/objectValues02:34
*** philiKON_ has quit IRC02:34
srichterwill also not work02:34
srichtercontext/values would be correct02:35
srichterbut I do not think that autocoder develops Python-based views02:35
srichterautocoder: page template development through the web is not supported by us02:35
srichterautocoder: I suggest getting one of the books; philiKON's 3nd edition just came out I have heard02:36
autocoderI am a jack of all trades and this is my first experience with either python or zope.  All advice is welcome.02:37
autocoderLet me try the path correction....02:37
srichterplease, please, please do not use TTW development in Zope 302:37
autocoderSmokin'!  That fixed that path.  Apparently it is not my only bogus path.02:38
autocoderI am only doing this because the configuration is so complex that I can;t be sure of what I have.02:39
autocoderI will remove it an put it in a pt file in the filesystem when I have something that works.02:39
autocoderThen I have one fewer thing to cause problems.02:40
alecmautocoder: 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
autocoderSo, 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
autocoderO.K.  That;s a bug help.  Let me digest that for a second....02:42
autocoderO.K.  That;s a big help.  Let me digest that for a second....02:42
autocoderOnce 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
srichterthey differ based on the objects you get02:45
*** niemeyer has quit IRC02:47
autocoderSo, 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
srichterPersistent does not provide any properties02:47
autocoderWell, then I report with pride, that I see them all.  :-)02:48
srichterthe id has to be accessed via zapi.name(); I think in TAL you can use item/zapi:name02:48
autocoderIf 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
srichterget one of the Zope 3 books02:50
srichterthey give you a very systematic approach of learning Zope 302:50
srichterPhilipp's second edition just came out, so it is uptodate02:50
autocoderWell, that will be a huge improvement over wondering around in the dark and stumbling over Zope 2 docs and examples....02:51
srichteralso, after starting Zope 3, you can check out: http://localhost:8080/++apidoc++02:51
srichterit is much more low-level, but good reference material02:51
autocoderYes!!!  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 IRC02:56
autocodersrichter, Thanks very much for your help.  I have renewed enthusiasm.  Which book do you recommend?02:58
*** hazmat has quit IRC03:02
*** natea_ has joined #zope3-dev03:03
*** natea has quit IRC03:11
jkakargrepping through source code isn't helping me today... :)  uh, is there an easy way to get the current pricipal?03:23
*** wrobel has quit IRC03:25
*** whitmo has joined #zope3-dev03:30
*** whit has quit IRC03:30
*** stub has joined #zope3-dev03:42
*** natea has joined #zope3-dev03:56
srichterautocoder: buy Philipp's new edition and mine of course too ;-) (mine is a bit outdated but the concepts still stand)04:05
srichterjkakar: request.principal04:05
jkakarsrichter: Ah, that's what I thought... I was hoping there was a better way (ie: singleton access).  Thanks!04:06
srichterI think this is the best way possible :-)04:06
srichterin Python things like this are not typically done with singeltons; we are not in JAva land here :-)04:07
jkakarsrichter: 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
srichterneeding the principal anywhere else than presentation code is often a design flaw04:11
srichterif it is not, you can work a little harder by getting at the interaction04:11
jkakarsrichter: Agreed.04:11
* jkakar runs away04:12
*** natea_ has quit IRC04:12
*** natea_ has joined #zope3-dev04:48
*** natea has quit IRC05:05
*** Aiste has joined #zope3-dev05:14
*** ktwilight_ has quit IRC05:35
*** ktwilight has joined #zope3-dev05:37
*** Aiste has quit IRC05:39
*** reco has quit IRC05:45
*** hazmat has joined #zope3-dev06:01
*** ChanServ sets mode: +o hazmat06:01
*** d2m has quit IRC06:01
*** d21 has joined #zope3-dev06:01
*** natea has joined #zope3-dev06:11
*** natea_ has quit IRC06:26
*** natea_ has joined #zope3-dev07:03
*** natea has quit IRC07:12
*** dobee_ has joined #zope3-dev07:17
*** dobee_ has quit IRC07:36
*** alecm has quit IRC07:46
*** dobee has joined #zope3-dev07:52
*** hazmat has quit IRC07:55
*** natea has joined #zope3-dev07:55
*** natea_ has quit IRC08:11
*** eins has joined #zope3-dev08:16
*** sureshvv has joined #zope3-dev08:26
*** zagy has joined #zope3-dev08:42
*** natea_ has joined #zope3-dev08:48
*** philiKON has joined #zope3-dev08:59
*** Aiste has joined #zope3-dev09:04
*** natea has quit IRC09:04
*** dlk has joined #zope3-dev09:05
*** opetznick has joined #zope3-dev09:11
*** d21 has left #zope3-dev09:15
*** timte has joined #zope3-dev09:29
*** hdima has joined #zope3-dev09:31
*** natea has joined #zope3-dev09:40
*** jkakar has quit IRC09:43
*** Aiste has quit IRC09:49
*** natea_ has quit IRC09:57
*** baijum has quit IRC10:12
*** HakTom has joined #zope3-dev10:13
*** jfroche has joined #zope3-dev10:28
*** HakTom has quit IRC10:28
*** wrobel has joined #zope3-dev10:28
*** ktwilight_ has joined #zope3-dev10:30
*** natea_ has joined #zope3-dev10:32
*** natea has quit IRC10:41
*** tarek has joined #zope3-dev10:42
*** ktwilight has quit IRC10:44
*** flox has joined #zope3-dev10:46
*** yota has joined #zope3-dev10:48
*** kobold has joined #zope3-dev10:52
*** harobed has joined #zope3-dev10:57
*** ignas has joined #zope3-dev10:59
*** natea has joined #zope3-dev11:25
*** natea_ has quit IRC11:42
*** WebMaven has left #zope3-dev11:45
*** stub has quit IRC11:45
*** stub has joined #zope3-dev11:45
*** dunny has quit IRC12:00
*** WebMaven has joined #zope3-dev12:07
*** henri_ has joined #zope3-dev12:16
*** WebMaven has quit IRC12:27
*** projekt01 has joined #zope3-dev12:32
*** natea_ has joined #zope3-dev12:47
*** jinty has joined #zope3-dev12:48
*** strichter has joined #zope3-dev12:53
*** mgedmin has joined #zope3-dev12:54
*** srichter has quit IRC13:01
*** natea has quit IRC13:03
*** d2m has joined #zope3-dev13:07
*** niemeyer has joined #zope3-dev13:14
*** natea has joined #zope3-dev13:40
*** natea_ has quit IRC13:57
*** rocky has joined #zope3-dev14:15
*** stub has quit IRC14:23
*** deo has quit IRC14:31
*** strichter is now known as srichter14:32
*** ChanServ sets mode: +o srichter14:32
*** SmokeyD has quit IRC14:57
*** hazmat has joined #zope3-dev15:01
*** ChanServ sets mode: +o hazmat15:01
*** natea_ has joined #zope3-dev15:03
*** HakTom has joined #zope3-dev15:03
*** alga has joined #zope3-dev15:06
*** natea has quit IRC15:18
*** romanofski has joined #zope3-dev15:21
*** kobold has left #zope3-dev15:26
*** SteveA has quit IRC15:30
*** SteveA has joined #zope3-dev15:30
*** hazmat has quit IRC15:32
*** mgedmin has quit IRC15:53
*** hazmat has joined #zope3-dev15:53
*** ChanServ sets mode: +o hazmat15:53
*** henri_ has left #zope3-dev15:54
*** natea has joined #zope3-dev15:55
*** natea_ has quit IRC16:02
*** HakTom has quit IRC16:09
*** Aiste has joined #zope3-dev16:28
*** gumpa has joined #zope3-dev16:29
*** J1m has joined #zope3-dev16:45
*** b_52Free has joined #zope3-dev16:48
*** __mac__ has quit IRC16:48
*** hazmat has quit IRC16:49
*** hazmat has joined #zope3-dev17:02
*** ChanServ sets mode: +o hazmat17:02
*** eins has quit IRC17:12
*** dobee has quit IRC17:15
*** natea_ has joined #zope3-dev17:17
*** opetznick has quit IRC17:24
*** dobee has joined #zope3-dev17:27
*** BjornT has quit IRC17:28
*** jinty has quit IRC17:28
*** flox has quit IRC17:29
*** hdima has quit IRC17:33
*** natea has quit IRC17:33
*** BjornT has joined #zope3-dev17:36
*** opetznick has joined #zope3-dev17:49
*** dlk has left #zope3-dev18:05
*** henri_ has joined #zope3-dev18:14
*** zagy has quit IRC18:19
*** romanofs1i has joined #zope3-dev18:21
*** projekt01 has quit IRC18:23
*** reco has joined #zope3-dev18:27
*** tarek has left #zope3-dev18:30
*** jinty has joined #zope3-dev18:31
*** mkerrin has joined #zope3-dev18:33
*** jinty has quit IRC18:37
*** natea has joined #zope3-dev18:40
*** romanofski has quit IRC18:44
*** alecm has joined #zope3-dev18:48
*** BjornT has quit IRC18:49
*** BjornT has joined #zope3-dev18:49
*** ksmith99 has quit IRC18:51
*** henri_ has quit IRC18:53
*** Aiste has quit IRC18:54
*** philiKON has quit IRC18:54
*** dobee has quit IRC18:55
*** natea_ has quit IRC18:56
*** Aiste has joined #zope3-dev19:00
*** opetznick has quit IRC19:00
*** dobee has joined #zope3-dev19:00
*** hazmat has quit IRC19:07
*** harobed has quit IRC19:07
*** stub has joined #zope3-dev19:10
*** dobee has quit IRC19:12
*** hazmat has joined #zope3-dev19:14
*** ChanServ sets mode: +o hazmat19:14
*** jkakar has joined #zope3-dev19:23
*** whitmo is now known as whit19:25
*** opetznick has joined #zope3-dev19:29
*** natea_ has joined #zope3-dev20:02
*** RaFromBRC has joined #zope3-dev20:03
*** zagy has joined #zope3-dev20:09
*** natea has quit IRC20:18
*** stub has quit IRC20:31
*** Aiste has quit IRC20:34
ignas anyone with commit access for zc.datewidget ?20:40
*** natea has joined #zope3-dev20:55
*** zagy has quit IRC20:59
*** zagy has joined #zope3-dev21:07
*** zagy has quit IRC21:08
*** natea_ has quit IRC21:11
*** tonico is now known as tonico|away21:14
*** mgedmin has joined #zope3-dev21:14
*** dunny has joined #zope3-dev21:33
*** WebMaven has joined #zope3-dev21:49
*** hazmat has quit IRC21:57
autocodersrichter, 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-dev21:58
autocoderI have both bookd coming from Borders.21:58
autocoderso, 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
d2mautocoder: @@something tells zope3 to look for a view class instead of a content object of the same name22:01
*** natea is now known as natea|away22:05
*** jinty has quit IRC22:07
*** natea has joined #zope3-dev22:17
*** mgedmin has quit IRC22:19
autocoderd2m, 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 IRC22:21
d2mautocoder: you need to read a book on the topic, this one (http://worldcookery.com/About) has just been published in second edition22:24
*** deo has joined #zope3-dev22:25
autocoderYes.  It is on the way.  Not ten minutes ago I mentioned Border's and B&N policy.22:25
autocoderd2m, 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
d2mautocoder: grep .zcml files for the name 'standard_macros'22:26
autocoderO.K.  ...22:27
autocoderI 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 IRC22:32
autocoderStandardMacros subclasses the basic skin StandardMacros...22:33
autocoderNow, 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
autocoderd2m, 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-dev22:49
*** ChanServ sets mode: +o hazmat22:49
*** hazmat has quit IRC22:50
*** opetznick has quit IRC23:05
*** natea_ has joined #zope3-dev23:10
*** natea has quit IRC23:17
*** hazmat has joined #zope3-dev23:19
*** ChanServ sets mode: +o hazmat23:19
*** RaFromBRC is now known as RaFromBRC|lunch23:20
rockyany chance someone around me can explain the steps i need to take to implement my own adapter that provides the dublincore stuff?23:30
rockyi 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 one23:31
*** rocky is now known as rocky|away23:44
*** hazmat has quit IRC23:45

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