[Zope] Getting a specific object in Python from an id string (Was [Zope]: Python method for getting contents of a sub-folder)

Dieter Maurer dieter@handshake.de
Wed, 22 Aug 2001 22:50:55 +0200 (CEST)


complaw@hal-pc.org writes:
 > ....
If you mean with an "oid" an "id" as used by Zope as part
of the URLs, then the answer is easy:

   getattr(container/context,id)

If you mean the object id as used inside the ZODB to identify
an object, then you (probably) will need to use an external
method.


Dieter