AW: [Zope] manage_clone - Pleeeease help !!!

Marc Fischer marcbpc@gmx.de
Tue, 20 Mar 2001 18:05:29 +0100


Hey, thank you very much !!!!

It works with:
<dtml-call expr="manage_clone(Folder[variable], 'N_1', REQUEST)">

But I think I don't understand the syntax of Dtml/ Python! I never now what
syntax to use like ... _.[xxx] or _['xxx'] or ... or what ever.

Perhabs someone could tell me where to start learning. It's really difficult
to understand !!!!

Thanks again ... Marc


> -----Ursprungliche Nachricht-----
> Von: zope-admin@zope.org [mailto:zope-admin@zope.org]Im Auftrag von
> Casey Duncan
> Gesendet: Dienstag, 20. Marz 2001 17:18
> An: Marc Fischer
> Cc: zope@zope.org
> Betreff: Re: [Zope] manage_clone - Pleeeease help !!!
>
>
> Marc Fischer wrote:
> >
> > Hi,
> >
> > it's me again. :-(
> > I have a great problem with manage_clone!
> > If I use the following Syntax, with an explicit item to clone all works
> > fine:
> >
> > <dtml-call "manage_clone(Folder.N_1, 'N_1', REQUEST)">
> >
> > but, if I use a variable with the value 'N_1' like that:
> >
> > <dtml-call "manage_clone(Folder._['variable'], 'N_1', REQUEST)">
> >
>
> This expression syntax is incorrect I think you might mean:
>
> <dtml-call expr="manage_clone(Folder[variable], 'N_1', REQUEST)">
>
> Note the lack of quotes arund variable. Folder[variable] means get me
> the object with the id equal to the value of variable in the folder
> Folder.
>
> Acquisition might get in your way here, so to make sure it doesn't you
> might want to use Folder.aq_explicit[variable] instead.
>
> --
> | Casey Duncan
> | Kaivo, Inc.
> | cduncan@kaivo.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 )
>