[Zope] Access to DTML Document properties
Pavlos Christoforou
pavlos@gaaros.msrc.sunysb.edu
Thu, 11 Mar 1999 09:26:11 -0500 (EST)
On Thu, 11 Mar 1999, Wiebe Kunst wrote:
> OK - I think I get it, but how do I "convert" a string to a reference to an
> object, so that I can call properties associated with the object (DTML
> document). This should be possible, isn't it???
> >_.getitem('foo') simply returns foo as found in the DTML namespace.
> >
Wiebe
You can use something like:
<!--# var "_.getitem('foo',0).whateverproperty"--> (Is 0 the default?)
_.getitem('foo',0) returns a reference to the object with id foo.
Pavlos