[Zope] Changing path of the cataloged objects

Dieter Maurer dieter@handshake.de
Thu, 16 Jan 2003 22:01:56 +0100


Igor Leturia wrote at 2003-1-16 08:46 +0100:
 >   I have some objects external to the ZODB that I have cataloged in a
 > ZCatalog. The objects have been moved to another directory, so I need to
 > change the path of the cataloged objects. For various reasons (not the
 > weakest of them being the long time needed to catalog all these objects)
 > I would like to do this without having to recatalog all. What would be
 > the python code to achieve this?
zCatalog._catalog maintains the maps "uids <--> paths" in the
mappings "uids" and "paths".

You can update them, if necessary.


Dieter