Re: [Zope] Finding and Mass-renaming objects
--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 - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope Plone development, Consulting pgpmXqHFOEzza.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Finding and Mass-renaming objects
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 manage_renameObject() renames subobjects, I think I need to determine the parent-object or container of the found objects. Would anyone here know how to do so or suggest an alternate way of renaming these objects ? Regards, Danny ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
RE: [Zope] Finding and Mass-renaming objects
--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 -- ZOPYX Ltd. Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope Plone development, Consulting pgpNA53kG529K.pgp Description: PGP signature ___ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )