[Zope] Calling objects by name

Phil Harris phil.harris@zope.co.uk
Mon, 23 Oct 2000 21:59:53 +0100


Danny,

Try something like

<dtml-var "_[id_you_created]">

or

<dtml-var "_.getitem(id_you_created,1)">

hth

Phil

----- Original Message ----- 
From: "Danny William Adair" <Danny@Adair.net>
To: <zope@zope.org>
Sent: Tuesday, October 24, 2000 6:50 PM
Subject: [Zope] Calling objects by name


| How can I render an object in DTML if I have its id as a string?
| I would like to construct its name as a string and then call the object
| variable by its name.
| (Meaning I will have to make sure such an object exists)
| 
| tia,
| 
| CU+Prost,
| 
| Danny
| 
| 
| _______________________________________________
| Zope maillist  -  Zope@zope.org
| http://lists.zope.org/mailman/listinfo/zope
| **   No cross posts or HTML encoding!  **
| (Related lists - 
|  http://lists.zope.org/mailman/listinfo/zope-announce
|  http://lists.zope.org/mailman/listinfo/zope-dev )