[Zope] Getting an object from it's id

Oleg Broytmann Oleg Broytmann <phd@mail2.phd.pp.ru>
Tue, 23 Jan 2001 15:34:26 +0300 (MSK)


On Tue, 23 Jan 2001, Gale wrote:
> <dtml-in expr="objectValues('Folder')">
> <dtml-if "myId==id">

   You don't need to "get" the object, as the object is already on top of
the namespace stack (dtml-in put the object there on every iteration). Just
use the object's attributes (id, after all, is just yet another attribute).

Oleg.
----
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.