[Zope] change objects id

2006-03-27 Thread George
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 )


Re: [Zope] change objects id

2006-03-27 Thread Andreas Jung



--On 27. März 2006 16:46:47 +0300 George [EMAIL PROTECTED] 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 JungZOPYX Ltd.  Co KG-
 -   E-mail: [EMAIL PROTECTED]   Web: www.zopyx.com, www.zopyx.de -
  ---


pgp8yWaMw9G9J.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] change objects id

2006-03-27 Thread George
Thx for the prompt responses! manage_renameObject was exactly what I needed!On 3/27/06, Patrick Decat [EMAIL PROTECTED]
 wrote:container.manage_renameObject(old_id, new_id)On 3/27/06, George 
[EMAIL PROTECTED] 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-announcehttp://mail.zope.org/mailman/listinfo/zope-dev
 )
___
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] change objects id

2006-03-27 Thread Patrick Decat
container.manage_renameObject(old_id, new_id)

On 3/27/06, George [EMAIL PROTECTED] 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 )



___
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 )