How can I change an objects id from a python script? Sorry if it's sth obvious, can't figute it out...
--On 27. März 2006 16:46:47 +0300 George <tesseris@gmail.com> wrote:
How can I change an objects id from a python script? Sorry if it's sth obvious, can't figute it out...
you mean renaming an object inside an object container? look at manage_renameObjects(old_ids, new_ids). -aj ----------------------------------------------------------------------- - Andreas Jung ZOPYX Ltd. & Co KG - - E-mail: info@zopyx.com Web: www.zopyx.com, www.zopyx.de - -----------------------------------------------------------------------
container.manage_renameObject(old_id, new_id) On 3/27/06, George <tesseris@gmail.com> wrote:
How can I change an objects id from a python script? Sorry if it's sth obvious, can't figute it out...
_______________________________________________ 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 )
Thx for the prompt responses! manage_renameObject was exactly what I needed! On 3/27/06, Patrick Decat <pdecat@gmail.com> wrote:
container.manage_renameObject(old_id, new_id)
On 3/27/06, George <tesseris@gmail.com> wrote:
How can I change an objects id from a python script? Sorry if it's sth obvious, can't figute it out...
_______________________________________________ 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 )
participants (3)
-
Andreas Jung -
George -
Patrick Decat