[Zope] Getting an object from it's id

Andrew Kenneth Milton akm@mail.theinternet.com.au
Tue, 23 Jan 2001 23:17:59 +1000


+-------[ Geoff Armstrong ]----------------------
| on 1/23/01 12:34 PM, Oleg Broytmann at phd@phd.pp.ru wrote:
|
| In DTML there doesn't seem to be a way of saying, "I have this string with
| the name of an object, now fetch me the object."

if objectname is actually a variable with the name...

<dtml-with "_.getitem(objectname,0)">

or <dtml-call "REQUEST.set('fooobject',_.getitem(objectname,0))"> to
get the object into a variable to pass or manipulate.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd          |  F:+61 7 3870 4477   | 
ACN: 082 081 472 ABN: 83 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068    |akm@theinternet.com.au|