[Zope] Updating Zclass object titles

Nico Grubert nico@beehive.de
Tue, 03 Jul 2001 18:22:02 +0100


> >    <dtml-call "doc.propertysheets.Basic.manage_changeProperties(REQUEST)">
> 
> Surprised anything works with this.
> manage_changeProperties requires that you say exactly what should be updated
> like you have shown below.
> If you don't want to say exactly which properties to update you should use
> manage_editProperties() which sniffs the REQUEST for existing variablenames
> that match what is in the basics of the ZClass.

Exactly!
what about this !?

<dtml-call
"myObject.propertysheets.MyPropertySheet.manage_changeProperties({
'title'              : REQUEST.form['new_title'],
'desc'               : REQUEST.form['new_desc'] 
})">


cheers,
nico

----------------------------------------------------------------
nico grubert  (education & publishing)    nico@beehive.de
beehive elektronische medien GmbH         http://www.beehive.de
phone: +49 30 847-82 0                    fax: +49 30 847-82 299