[Zope] PropertyIds

2000-06-19 Thread RC Compaan
I have a very simple documentclass in very simple structure in method that should return the properties of the document: dtml-call "REQUEST.set('tid', REQUEST.cookies['careermanid'])" dtml-with RESULTS // RESULTS is a ZClass Object Manager dtml-call "REQUEST.set('tmp', _.getitem(_['tid']))"

Re: [Zope] PropertyIds

2000-06-19 Thread Oleg Broytmann
On Mon, 19 Jun 2000, RC Compaan wrote: dtml-call "REQUEST.set('tmp', _.getitem(_['tid']))" // tmp is a document with an id equal to the cookie 1. Isn't it enough just to write _.getitem(tid)? 2. A shot in the dark: tmp is not a document, but its rendering. Try getitem(tid, 0)... Oleg.

Re: [Zope] PropertyIds

2000-06-19 Thread Rik Hoekstra
I have a very simple documentclass in very simple structure in method that should return the properties of the document: dtml-call "REQUEST.set('tid', REQUEST.cookies['careermanid'])" dtml-with RESULTS // RESULTS is a ZClass Object Manager dtml-call "REQUEST.set('tmp',

RE: [Zope] PropertyIds

2000-06-19 Thread RC Compaan
Compaan Cc: Zope Subject: Re: [Zope] PropertyIds I have a very simple documentclass in very simple structure in method that should return the properties of the document: dtml-call "REQUEST.set('tid', REQUEST.cookies['careermanid'])" dtml-with RESULTS // RESULTS is a ZCl

Re: [Zope] PropertyIds

2000-06-19 Thread Rik Hoekstra
Thanks Rik it works. I've noticed in some cases that one puts empty brackets at the end of certain zope object methods. Is that there for methods that can take parameters? [rh]Um, not quite, it has to do with the way of calling the object methods in question. DTML has two ways of calling:

RE: [Zope] PropertyIds

2000-06-19 Thread RC Compaan
Very clear, thanks. Really appreciated. Well i guess the topic was never about propertyids, but i can only tell that now. Still working with properties i find the following trouble. dtml-var "MyDoc.propertyItems()" returns a list of key-value pairs [('Key1','Value1'},('Key2','Value2')] to