I need to find a way to rename objects in the ZODB while Zope is not running. i.e. by importing and manipulating the ZODB directly. Nothing immediately jumps out at me from looking at the ZODB HowTo and other materials. Any pointers? regards, Sean
You should be able to use the same method, manage_renameObjects outside of Zope. Call it on the container of the object to be renamed passing it two lists, a list of old ids and a list of new ids. hth, -Casey Sean McGrath wrote:
I need to find a way to rename objects in the ZODB while Zope is not running. i.e. by importing and manipulating the ZODB directly. Nothing immediately jumps out at me from looking at the ZODB HowTo and other materials.
Any pointers?
regards, Sean
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Sean McGrath writes:
I need to find a way to rename objects in the ZODB while Zope is not running. i.e. by importing and manipulating the ZODB directly. Nothing immediately jumps out at me from looking at the ZODB HowTo and other materials. Casey already replied.
However, you probably also need to commit your changes. The "debugging using the Monitor server" document (or the mailing list archives) tell you, how to obtain and commit a transaction. Dieter
On Tuesday 09 April 2002 01:46 pm, Sean McGrath wrote:
I need to find a way to rename objects in the ZODB while Zope is not running. i.e. by importing and manipulating the ZODB directly. Nothing immediately jumps out at me from looking at the ZODB HowTo and other materials.
Any pointers?
cd lib/python/ python
import Zope app = Zope.app() # the app var is your root folder # manipulate some objects get_transaction().commit()
cheers kapil
participants (4)
-
Casey Duncan -
Dieter Maurer -
kapil thangavelu -
Sean McGrath