[Zope] change id...

Phil Harris phil.harris@zope.co.uk
Mon, 9 Apr 2001 14:30:17 +0100


The id can be changed by using:

object.manage_renameObjects(ids=['a list of ids'],new_ids=['the new names'])


----- Original Message -----
From: "After Dark" <afterz@zipmail.com>
To: "Paula Mangas" <pamm@students.si.fct.unl.pt>
Cc: <zope@zope.org>
Sent: Monday, April 09, 2001 2:24 PM
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 )