[Zope] Change properties

Einar Nęss Jensen einjen@nvg.ntnu.no
Tue, 25 Mar 2003 16:20:31 +0100


At 12:01 25.03.2003 +0100, Jens JB. Bjerre wrote:
>I think i have tried almost all, and i still cant solve a simple problem. 
>I have made a ZClass with some extra properties, and I have to make a form 
>in a DTMLMethod which can change the values of the properties. I have made 
>the form and have tried to make the update-scriptlike this:
>
>
>
><dtml-var standard_html_header>
>
><dtml-call 
>"propertysheets.zpro.manage_changeProperties({'beskrivelse':'new_beskrivelse'})">
>
><dtml-var standard_html_footer>

I ran across the same probmel with my zclasses.
with python i did this when I create the zclass:

container[name].propertysheets.egenskaper.manage_changeProperties(navn = 
completeName)

works as it should.

so i guess you should try something like this:

<dtml-call "propertysheets.zpro.manage_changeProperties(beskrivelse = 
new_beskrivelse)">

( I tested it and it works very nice with my zclass)


Einar