[Zope] Getting an object from it's id

Geoff Armstrong geofstro@monaco.mc
Tue, 23 Jan 2001 14:18:24 +0000


on 1/23/01 1:39 PM, Max Møller Rasmussen at maxm@normik.dk wrote:

Thanks. That's great; but you do need to know the objects immediate
container right? I have one situation where the container could be one of
many.


Geoff

> From: Geoff Armstrong [mailto:geofstro@monaco.mc]
> 
>> 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."
> 
> Shure there is:
> 
> <dtml-var "some_container_object[remote_id].title">
> 
> As far as I remember.
> 
> regards Max M
> 
> A snippet I use somewhere:
> 
> <dtml-in "emner[_['sequence-item']].objectValues('maal')">
> <dtml-var title><br>
> <dtml-var description><br><br>
> </dtml-in>