[Zope] modifying/changing DTML properties

Dieter Maurer dieter@handshake.de
Thu, 17 Aug 2000 20:36:44 +0200 (CEST)


R. David Murray writes:
 > > This:
 > >   <b><!--#var eggs --></b>
 > >   <dtml-call "manage_changeProperties({'eggs': 'blue'})">
 > > 
 > >   <p><!--#var eggs -->
 > > 
 > > results in:
 > >    <b>green</b>
 > > 
 > >    <p>green
 > > 
 > > did i miss something?
 > 
 > Hmm.  That should have worked.  You could try
 > manage_changeProperties(eggs='blue') as an alternative, but the
 > dictionary way should have worked.
Maybe, "manage_changeProperties" is called on the wrong
object, i.e. one that does not have an "eggs" property.

Try:

	<dtml-call "PARENTS[0].manage_changeProperties({'eggs': 'blue'})">

to call it on the folder.


Dieter