[Zope] change id...

Paula Mangas pamm@students.si.fct.unl.pt
Mon, 9 Apr 2001 14:32:46 +0100 (WEST)


Hi!


On Mon, 9 Apr 2001, After Dark wrote:

> Even with a folder?? If I did that with a file wouldn`t be a
> problem, but a with a folder... :(
>
> Sugestions??
>
> Thanks.
>



I think that, if you want to change the *id* of a folder...

You create a new folder, and you can copy the content of the first one to
the new one.

(you can't change de id "directly", it's a key)
Did you already solve your title problem?


Paula Mangas




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

-- 

============================================================
 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
============================================================