IRC log of #zope3-dev for Wednesday, 2006-12-13

*** jfroche has quit IRC00:03
*** ignas has quit IRC00:06
*** WebMaven has joined #zope3-dev00:11
*** WebMaven has quit IRC00:13
*** dunny has joined #zope3-dev00:16
*** hazmat has quit IRC00:34
*** dobee has quit IRC00:40
*** batlogg has quit IRC00:42
*** hazmat has joined #zope3-dev00:46
*** irc.freenode.net sets mode: +o hazmat00:46
*** momoking has quit IRC00:48
*** hazmat has quit IRC00:48
*** momoking has joined #zope3-dev00:49
*** philiKON has quit IRC00:52
*** philiKON has joined #zope3-dev00:53
*** philiKON has quit IRC00:56
*** pcardune_ has joined #zope3-dev00:56
*** philiKON has joined #zope3-dev00:59
*** HakTom has joined #zope3-dev01:00
*** pcardune_away has quit IRC01:14
*** J1m has quit IRC01:36
*** RaFromBRC is now known as RaFromBRC|lunch01:47
*** philiKON has quit IRC02:01
*** RaFromBRC|lunch is now known as RaFromBRC02:07
*** rmarianski has quit IRC02:09
*** jhauser has quit IRC02:24
*** hazmat has joined #zope3-dev02:27
*** ChanServ sets mode: +o hazmat02:27
*** hazmat has quit IRC02:28
*** reco_ has quit IRC02:28
*** reco has joined #zope3-dev02:29
*** redir has joined #zope3-dev02:47
*** grahal has quit IRC02:49
*** hazmat has joined #zope3-dev02:51
*** ChanServ sets mode: +o hazmat02:51
*** redir has quit IRC03:01
*** wrobel has quit IRC03:16
*** tarek has quit IRC03:17
*** niemeyer has quit IRC03:21
*** tarek has joined #zope3-dev04:08
*** hazmat has quit IRC04:14
*** tarek has quit IRC04:17
*** stub has joined #zope3-dev04:20
*** hazmat has joined #zope3-dev04:36
*** ChanServ sets mode: +o hazmat04:36
*** momoking has quit IRC04:50
*** momoking has joined #zope3-dev04:51
*** hazmat has quit IRC04:54
*** RaFromBRC has quit IRC04:54
*** momoking has quit IRC05:01
*** deo has quit IRC05:04
*** WebMaven has joined #zope3-dev05:11
*** hazmat has joined #zope3-dev05:34
*** ChanServ sets mode: +o hazmat05:34
*** alecm has quit IRC05:47
*** autocoder has joined #zope3-dev05:53
autocoderOne of the fields in my schema is a URI.  I am struggling with two aspects of this field.  First, I want the edit view to present it as a drop-down and the options should be the contents of a specific folder in my application namespace.  Second, when I display the content object, I want to include the page referenced by the URI in my page, not just the URI.  Can anybody offer any advice on either of these problems?06:02
*** hazmat has quit IRC06:21
*** baijum has joined #zope3-dev07:08
*** dunny has quit IRC07:24
*** alecm has joined #zope3-dev07:31
*** alecm has quit IRC07:47
*** eins has joined #zope3-dev08:07
*** alecm has joined #zope3-dev08:40
*** wrobel has joined #zope3-dev08:46
*** febb has joined #zope3-dev08:46
*** timte has joined #zope3-dev08:50
*** febb has quit IRC08:51
*** Huixquic has joined #zope3-dev08:51
*** febb has joined #zope3-dev08:53
*** Huixquic has quit IRC08:53
*** febb has quit IRC08:53
*** febb has joined #zope3-dev08:54
*** dobee_ has joined #zope3-dev08:57
*** febb has quit IRC08:58
*** febb has joined #zope3-dev08:58
*** srichter has joined #zope3-dev09:08
*** ignas has joined #zope3-dev09:11
*** philiKON has joined #zope3-dev09:15
*** dobee_ has quit IRC09:19
*** ChanServ sets mode: +o srichter09:19
*** tarek has joined #zope3-dev09:19
*** reco has quit IRC09:22
*** dobee has joined #zope3-dev09:23
*** philiKON_ has joined #zope3-dev09:26
romanofskimoin09:35
*** hdima has joined #zope3-dev09:41
*** batlogg has joined #zope3-dev09:41
*** stu1 has joined #zope3-dev09:46
*** stub has quit IRC09:47
*** stu1 is now known as stub09:47
*** philiKON has quit IRC09:50
*** srichter has quit IRC09:57
*** philiKON_ has quit IRC09:58
*** dunny has joined #zope3-dev10:02
*** RaFromBRC has joined #zope3-dev10:04
*** dobee has quit IRC10:06
*** HakTom has joined #zope3-dev10:19
*** alecm has quit IRC10:23
*** RaFromBRC has quit IRC10:24
*** jkakar has quit IRC10:25
*** ignas has quit IRC10:39
*** hdima has quit IRC10:40
*** dunny_ has joined #zope3-dev10:41
*** dunny has quit IRC10:49
*** hdima has joined #zope3-dev11:05
*** jfroche has joined #zope3-dev11:07
*** srichter has joined #zope3-dev11:13
*** J1m has joined #zope3-dev11:16
*** henri_ has joined #zope3-dev11:16
*** henri_ has left #zope3-dev11:17
*** dobee has joined #zope3-dev11:22
*** tarek_ has joined #zope3-dev11:39
*** dobee has quit IRC11:40
*** dobee has joined #zope3-dev11:45
*** tarek has quit IRC11:45
*** tarek__ has joined #zope3-dev11:54
*** tarek_ has quit IRC12:00
*** WebMaven has joined #zope3-dev12:08
*** RaFromBRC has joined #zope3-dev12:09
*** WebMaven has quit IRC12:16
*** dlk has joined #zope3-dev12:30
*** dlk has left #zope3-dev12:30
*** RaFromBRC has quit IRC12:34
*** ignas has joined #zope3-dev12:34
*** tarek_ has joined #zope3-dev12:34
*** tarek__ has quit IRC12:39
*** __mac__ has quit IRC12:40
*** opetznick has joined #zope3-dev12:41
*** __mac__ has joined #zope3-dev12:41
*** tarek__ has joined #zope3-dev12:41
*** tarek_ has quit IRC12:42
*** grahal has joined #zope3-dev13:02
*** ignas has quit IRC13:02
*** opetznick has quit IRC13:08
*** niemeyer has joined #zope3-dev13:09
*** dobee has quit IRC13:12
*** J1m has quit IRC13:21
*** baijum has quit IRC13:27
*** opetznick has joined #zope3-dev13:28
*** alga has joined #zope3-dev13:29
*** niemeyer has quit IRC13:33
*** niemeyer has joined #zope3-dev13:33
*** jinty has joined #zope3-dev13:38
*** dunny_ has quit IRC13:43
*** dobee has joined #zope3-dev13:58
*** ignas has joined #zope3-dev14:00
*** stub has quit IRC14:10
*** mkerrin has joined #zope3-dev14:27
*** gintas has joined #zope3-dev14:33
*** philiKON has joined #zope3-dev14:34
*** philiKON has quit IRC14:53
*** tarek__ has quit IRC15:01
*** tarek has joined #zope3-dev15:05
*** philiKON has joined #zope3-dev15:05
*** HakTom has quit IRC15:07
*** opetznick has quit IRC15:07
*** HakTom has joined #zope3-dev15:08
*** opetznick has joined #zope3-dev15:09
*** rocky|away is now known as rocky15:14
*** projekt01 has joined #zope3-dev15:14
*** projekt01 has joined #zope3-dev15:15
*** ChanServ sets mode: +o srichter15:15
*** J1m has joined #zope3-dev15:24
*** opetznick has quit IRC15:24
*** dobee has quit IRC15:27
*** opetznick has joined #zope3-dev15:30
*** dobee has joined #zope3-dev15:31
*** dobee has quit IRC15:47
*** hazmat has joined #zope3-dev15:48
*** ChanServ sets mode: +o hazmat15:48
*** dobee has joined #zope3-dev15:48
*** eins has quit IRC15:49
*** tarek has quit IRC15:49
*** tarek has joined #zope3-dev15:50
autocoderphiliKON, I have your book.  It has been a help.  I have some questions that as of page 184 are not answered. One of the fields in my schema is a URI.  I am struggling with two aspects of this field.  First, I want the edit view to present it as a drop-down and the options should be the contents of a specific folder in my application namespace.  Second, when I display the content object, I want to include the page referenced15:54
autocoderby the URI in my page, not just the URI.  Can you offer any advice on either of these problems?15:54
philiKONautocoder: drop down list => Vocabularies chapter15:54
autocoderThanks for that.   I'll get there.15:55
philiKONwhat do you mean by "include page referenced"?15:55
philiKONseems like you really don't want to store URIs15:55
philiKONbut references to other content objects15:55
philiKONthat should be displayed as part of the view15:55
autocoderMaybe....  I'm still feeling my way around...15:56
autocoderMy simple application allows the user to store an HTML page in a folder and then complete detalis of the page in the attributes of the content object.15:57
autocoderI then wnat to display a table fo the  properties folllowed by the uploaded page.15:57
autocoderSo, I need a URI for the page so I know what to display and then in the view I need to "dereference" the URI to collect the HTML and incorporate it.15:58
philiKONi don't think you need a URI15:58
philiKONyou just want a reference15:58
autocoderGood news.  What do you recommend?15:58
philiKONperhaps look at zc.extrinsicreference15:59
philiKONsimple way of referencing other objects15:59
autocoderO.K., so I want a reference to the uploaded HTML page in the "listings" folder.  How do I display that HTML?  TAL has the "structure" statement, but I still see myself as one-level of indirection off.16:00
philiKONwell, depends on how that page is uploaded16:01
philiKONstructure path/to/object/data16:01
philiKONwould do it16:01
philiKONassuming the object had a 'data' attribute16:01
philiKON(i think that's true for "File" objects)16:01
autocoderDo you have an exmple of uploaded content incorporated into a content object in your book anywhere?16:01
philiKONno16:02
autocoderO.K. that helps.  I16:02
autocoder"file" object is probably what I have in "listings"16:02
philiKONwell you should know16:03
philiKONit's your app16:03
autocoderThen there must be a property that will allow me to treat it as a string and I can TAL replace structure from there.16:03
autocoderI should, but I don't.  :-)16:03
philiKONlike i said16:03
philiKON"File" content types have ana ttribute16:03
philiKONthat gives you access to the data16:03
philiKONjust look at IFile16:03
philiKONthat's what interfaces are for16:03
autocoderSmokin'!  O.K.  That give me enough to work on today.  Thanks for the help.16:04
*** hazmat has quit IRC16:04
philiKONautocoder: do you have the new edition, btw?16:04
autocoderSo, new the ink is runny... :-)16:04
philiKONheh, cool16:05
autocoderI believe....16:05
autocoderHow do I know?16:05
philiKONit says "Second edition"16:05
philiKONon the front16:05
autocoder39 figures and 10 tables?16:05
philiKONi have no friggin idea which edition that would be16:06
autocoderCrap! (Oops, that slipped...)  No!16:06
philiKONif you don't see any green letters saying "Second edition" on the cover, then you don't :(16:06
autocoderIt does not say "Second Edition"  I have been deceived!  :-)16:06
philiKONautocoder: i suggest you'll get the 2nd edition once it's out in the u.s.16:06
autocoderI will go back to Borders immediately!!!16:07
philiKONit's not out yet16:07
philiKONin the u.s. at least16:07
autocoderYes.16:07
philiKONshould be available some time in january hopefully16:07
autocoderYour english is var better than my German, but I can tell that itr is your second language.16:07
autocoderThere are sentances that are very funny in English.16:08
philiKONyeah, 1st edition sucked16:08
philiKONlanguage-wise16:08
philiKONyou'll find the 2nd edition much better16:08
autocoderThe order of the words is quite differentt.16:08
philiKONyeah, there were some slips here and there16:08
autocoderAs I say, I have no room to criticize -- I speak NO German, and you speak perfectly acceptable English.16:09
autocoderWell, Thanks for the help.  I will proceed with this and see where I arrive.16:09
philiKONgood luck16:09
autocoder... and I will have words with Borders!!16:09
autocoder:-)16:09
philiKONit's not their fault16:09
philiKONbut when you do go there, make sure to preorder ;)16:10
autocoderWell, when I asked for the second edition and they gave me this, I think they have some responsibility,..16:10
philiKONah, ok16:10
philiKONyeah, that sucks16:10
autocoderI am being facious.  I am not really mad at them and I will be polite.16:10
philiKONsure16:10
philiKON:)16:11
philiKONbut if you specifically asked for the 2nd ed.16:11
autocoderI will simply request that the exchnge it and they will.16:11
philiKONthey shouldn't give you the old one16:11
autocoderThey are quite good.16:11
philiKONyeah, i know them back from my time in the u.s.16:11
autocoderI did becuase I was listening to all the fanfare.  I knew of it.16:11
autocoderThanks again.16:11
autocoderLater...16:11
*** redir has joined #zope3-dev16:26
*** hazmat has joined #zope3-dev16:31
*** ChanServ sets mode: +o hazmat16:31
*** hazmat has quit IRC16:31
*** hazmat has joined #zope3-dev16:31
*** ChanServ sets mode: +o hazmat16:31
*** dobee has quit IRC16:33
*** dobee has joined #zope3-dev16:38
*** philiKON has quit IRC16:44
*** philiKON has joined #zope3-dev16:45
*** rmarianski has joined #zope3-dev16:59
*** dobee has quit IRC17:00
*** natea is now known as natea|away17:03
*** dobee has joined #zope3-dev17:07
*** hdima has quit IRC17:12
*** dobee has quit IRC17:29
*** hazmat has quit IRC17:30
*** dobee has joined #zope3-dev17:33
*** alecm has joined #zope3-dev17:34
*** mgedmin has joined #zope3-dev17:42
*** mgedmin_ has joined #zope3-dev17:43
*** mgedmin_ has quit IRC17:43
*** dobee has quit IRC17:52
*** opetznick has quit IRC17:55
*** rocky is now known as rocky|away18:00
*** gintas has quit IRC18:01
*** faassen has joined #zope3-dev18:04
*** philiKON has quit IRC18:14
*** tarek has quit IRC18:15
*** dobee has joined #zope3-dev18:15
*** natea|away is now known as natea18:15
*** opetznick has joined #zope3-dev18:16
*** philiKON has joined #zope3-dev18:21
*** tarek has joined #zope3-dev18:22
*** zagy has quit IRC18:23
*** tarek has quit IRC18:27
*** tarek has joined #zope3-dev18:29
*** opetznick has quit IRC18:32
*** rocky|away is now known as rocky18:34
*** deo has joined #zope3-dev18:36
*** projekt01 has quit IRC18:43
*** srichter has quit IRC18:43
*** alga has quit IRC18:45
*** ignas has quit IRC18:48
*** jkakar has joined #zope3-dev18:51
*** pcardune_ has quit IRC18:53
*** dobee has quit IRC18:57
*** dobee has joined #zope3-dev18:58
*** jinty has quit IRC18:59
*** alecm has quit IRC19:00
jfrochehello i need to register a multiadapter for a datetime.date and IRequest , is there some known way for this ?19:01
*** alecm has joined #zope3-dev19:02
*** natea_ has joined #zope3-dev19:05
*** alecm has quit IRC19:05
rockyyou know, sometimes i wish an adapter lookup would return a proxy object that only makes available the attributes on the adapter that are met by the given interface19:06
*** alecm has joined #zope3-dev19:06
*** dobee has quit IRC19:08
*** opetznick has joined #zope3-dev19:11
*** tarek has quit IRC19:15
*** tarek has joined #zope3-dev19:17
*** natea has quit IRC19:20
*** dunny has joined #zope3-dev19:31
*** natea_ has quit IRC19:31
*** natea has joined #zope3-dev19:33
*** RaFromBRC has joined #zope3-dev20:00
*** srichter has joined #zope3-dev20:12
autocoderHi Folks.  I am missing something small -- but apparently important.:n con20:12
*** ChanServ sets mode: +o srichter20:13
autocoderI want to traverse the content items in the root folder.20:13
autocoderI have configured this:20:13
autocoder        <browser:page20:13
autocoder                name="index.html"20:13
autocoder                for="zope.app.folder.folder.Folder"20:13
autocoder                permission="zope.View"20:13
autocoder                template="viewsummary.pt"20:13
autocoder                />20:13
autocoderRight so far?  I believe so...20:13
autocoder... in viewsummary.pt I have this line:20:14
autocoder    <tr tal:repeat="item context/values">20:14
autocoderI think that is also correct because the introspector leads me to believe this.20:14
autocoderThe very next line is:20:14
autocoder        <td tal:content="item/desc"></td>20:15
autocoder... and "item/desc" is causing a traversal error.20:15
autocoderI believe that "item" is one of my content objects, but I don't know.  And that could explain the error.  How would I know?20:16
*** RaFromBRC has quit IRC20:23
*** RaFromBRC has joined #zope3-dev20:28
*** pcardune_ has joined #zope3-dev20:33
*** zagy has joined #zope3-dev20:36
*** WebMaven has joined #zope3-dev20:49
*** tarek_ has joined #zope3-dev20:51
*** mkerrin has quit IRC20:53
autocoderCan someone please provide an example of a zpt using tal:repeat to iterate over a set of hetrogeneous objects in the root folder?21:02
autocoderI can't address anything from tal:repeat="item context/values"21:03
autocoderI would exect that there are properties inherited from "object" that I could display.  No luck.21:03
autocoderPretty please?  :-)21:04
*** J1m has quit IRC21:05
*** tarek has quit IRC21:06
pcardune_autocoder, what exactly are you trying to do?21:06
*** dobee has joined #zope3-dev21:06
*** natea is now known as natea|lunch21:07
*** J1m has joined #zope3-dev21:07
autocoderIterate over a set of objects in the root folder.  I have a few different kinds of objects, so the first cut would be to loop over the set of objects and display what they were.21:07
autocoderI want to use a tal:repeat in a zpt.21:07
pcardune_you could do something like:21:08
pcardune_<a tal:repeat="item context/values" tal:attributes="href item/@@absolute_url" tal:content="item/zope:name">Link to Item</a>21:09
*** J1m has quit IRC21:10
autocoderLet me try that....  (I see you are using "zope:name" in your TALES path.  Shouldn't I be able to reference the other propeties?)21:10
autocodermaening...21:10
autocoderitem/name?21:10
pcardune_you could say item/__name__21:10
autocoderO.K., that is doing what I want.  Can you take a few seconds to explain my mistake?21:11
autocoderWhat if I want to address one of the attributes of the content object?21:12
pcardune_the mistake is that name is not an attribute21:12
autocodermy schema includes a "desc" field.21:12
autocoderCan I see that "desc" attribute?21:13
pcardune_yes, assuming that permissions are set up correctly21:14
autocoderPermissions should be no problem.  I can see the individual content object completely.21:14
*** pcardune_ is now known as pcardune21:15
autocoderCan you give me an example addressing the "desc" attibute of the "item" I get with tal:repeat="item context/values" ?21:15
pcardunethen you should be able to see the desc field (just item/desc)21:15
autocoderI can't.  I get a traversal error.21:15
*** WebMaven has quit IRC21:17
pcardunetry looking at item/__class__/__name__ and make sure you are looking at the object you think you are looking at21:20
autocoderVery well.  Stand by.21:20
*** dobee has quit IRC21:21
autocoderI have three item: "Listing" (my content object), "Folder" (expected) and "ZPTPage".21:22
pcardunethen item/desc wont work on the Folder or ZPTPage objects because they don't have a desc attribute21:23
autocoderSO, I see that I need to constrain my traversal to only my "Listing" objects.  TAL is not procedural.   How do I ignore those items that are not "Listing"?21:23
pcarduneyou might try item/desc|nothing (that will handle traversal errors)21:23
autocoderAh!21:24
autocoderVery well.  Stand by...21:24
*** philiKON has quit IRC21:24
autocoderYou are brilliant.  That is the answer.  Thanks so very much.21:24
*** philiKON has joined #zope3-dev21:25
*** jfroche has quit IRC21:43
*** faassen has quit IRC21:57
*** dunny has quit IRC22:00
*** grahal has quit IRC22:02
*** rocky is now known as rocky|away22:05
*** dlk has joined #zope3-dev22:22
*** reco has joined #zope3-dev22:24
*** rocky|away is now known as rocky22:26
*** dlk has left #zope3-dev22:27
*** febb has quit IRC22:32
*** natea|lunch is now known as natea22:34
*** febb has joined #zope3-dev22:37
*** febb has quit IRC22:47
*** agroszer has joined #zope3-dev22:50
*** opetznick has quit IRC23:02
*** grahal has joined #zope3-dev23:12
*** mgedmin has quit IRC23:12
*** zagy has quit IRC23:29
*** RaFromBRC is now known as RaFromBRC|lunch23:34
*** grahal has quit IRC23:41
*** rlo has joined #zope3-dev23:53

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