6 Jun
2003
6 Jun
'03
10:02 a.m.
Nico Grubert wrote:
Hi there,
I have a catalog aware object "myobj" in the ZODB which is cataloged in a ZCatalog "MyCatatlog". Is there a way to get the ZCatalog in which myobj is cataloged if I have the myobj object ?
Such an object should have an attribute named default_catalog. So, getattr(myobj,myobj.default_catalog) should give you the catalog object via acquisition. HTH, oliver