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
--On 1. August 2006 10:02:58 +0800 "Sinang, Danny" <D.Sinang@spi-bpo.com> 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: info@zopyx.com - Phone +49 - 7071 - 793376 E-Publishing, Python, Zope & Plone development, Consulting
participants (2)
-
Andreas Jung -
Sinang, Danny