[Zope] creating objects... and change properties..

Kevin Dangoor kid@kendermedia.com
Thu, 8 Jun 2000 12:19:19 -0400


----- Original Message -----
From: "Pierre Rougier" <prougier@ina.fr>
To: <zope@zope.org>
Sent: Thursday, June 08, 2000 12:19 PM
Subject: [Zope] creating objects... and change properties..


> <dtml-with "manage_clone(livre1,Key,REQUEST)">
>
>   <dtml-call "manage_changeProperties(
>    EntryType=REQUEST['Type'],
>    author=Author,
>    title=Title,
>    year=Year,
>    publisher=Publisher,
>    volume=Volume,
>    adress=Adress,
>    edition=Edition,
>    month=Month,
>    note=Note
>   )">
> </dtml-with>
>
> (Author, Title..... are knowed because in a dtml-let flag....)
> Well, livre1 is a object created by a SFactory (a product contening a
> ZClass with a propertysheet)

When working with propertysheets, you need to let Zope know which
propertysheet to change. All you need to do is change the above to:

<dtml-call "propertysheets.YourPropertySheetName.manage_changeProperties(
...

Hope this helps...

Kevin