Changing path of the cataloged objects
Hi all, 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? Thanks in advance, Igor Leturia
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
participants (2)
-
Dieter Maurer -
Igor Leturia