Anything that can be done through the management interface can be done programmatically. <dtml-call "manage_renameObject(id, new_id)"> and <dtml-call "manage_changeProperties(title=new_title)"> are your friends. Have a look at the Zope Quick Reference (for instance). Cornelis J. de Brabander ========================================== Department of Education, Leiden University P.O.Box 9555, NL-2300 RB Leiden +31 71 527 3422/3401 brabander@fsw.leidenuniv.nl ==========================================
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of After Dark Sent: maandag 9 april 2001 15:25 To: Paula Mangas Cc: zope@zope.org Subject: Re: [Zope] change id...
Even with a folder?? If I did that with a file wouldn`t be a problem, but a with a folder... :(
Sugestions??
Thanks.
On Mon, 9 Apr 2001 14:08:32 +0100 (WEST) Paula Mangas <pamm@students.si.fct.unl.pt> wrote:
Hi!
I think that's not possible to change de value of *id*. You can solve this problem with a creation of another object (with the same type), in the copy, you can change the id, and after you delete the old one.
You can change the *title*, from python, like that: <your_object>.id = <new_value_wanted>
I hope that help, Paula Mangas
PS: sorry my bad english
-------------
On Mon, 9 Apr 2001, After Dark wrote:
Hello!!
I need to change the 'id' and 'title' of objects (programaticaly). How can I do that??
Thanks. ________________________________________________ Don't E-Mail, ZipMail! http://www.zipmail.com/
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
--
============================================================ Quando tiver duvidas, nao questione aqueles que so' tem certezas, pois corre o risco de ficar com mais duvidas!... ------------------------------------------------------------ Paula Monteiro Mangas
e-mail: Paula.Mangas@mail.com URL: http://students.fct.unl.pt/~pamm/ TMV: (+351) 96 2559034 ============================================================
________________________________________________ Don't E-Mail, ZipMail! http://www.zipmail.com/
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )