[Zope] Finding and Mass-renaming objects

2006-07-31 Thread Sinang, Danny
Hello, We need to find some objects in Zope and rename them to their lower-case equivalents. Is there a way to do this either via the ZMI or programmatically ? Regards, Danny ___ Zope maillist - Zope@zope.org

Re: [Zope] Finding and Mass-renaming objects

2006-07-31 Thread Andreas Jung
--On 31. Juli 2006 19:12:02 +0800 Sinang, Danny [EMAIL PROTECTED] wrote: Hello, We need to find some objects in Zope and rename them to their lower-case equivalents. Look at the ZopeFind() and/or ZopeFindAndApply() methods as defined in OFS.FindSupport. -aj -- ZOPYX Ltd. Co. KG -

RE: [Zope] Finding and Mass-renaming objects

2006-07-31 Thread Sinang, Danny
Look at the ZopeFind() and/or ZopeFindAndApply() methods as defined in OFS.FindSupport. I've tried ZopeFind() and it can indeed find the objects I'm looking for. Am now trying to use ZopeFindAndApply() to find and rename the objects found using manage_renameObject(). However, since

RE: [Zope] Finding and Mass-renaming objects

2006-07-31 Thread Andreas Jung
--On 1. August 2006 10:02:58 +0800 Sinang, Danny [EMAIL PROTECTED] wrote: However, since manage_renameObject() renames subobjects, I think I need to determine the parent-object or container of the found objects. obj.aq_parent (as documented in the Zope Developers Guide on zope.org). -aj