[Zope] change_properties

2000-09-08 Thread brocken22

Hallo,
that's the problem:
dtml-call "Dict_Test.manage_changeProperties({'Budget[0]':
neuesBudget})"

This means I'd like to change in a token property only one value but it's
not working.
Thanks

-- 
Sent through GMX FreeMail - http://www.gmx.net


___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] change_properties

2000-09-08 Thread R. David Murray

On Fri, 8 Sep 2000 [EMAIL PROTECTED] wrote:
 dtml-call "Dict_Test.manage_changeProperties({'Budget[0]':
 neuesBudget})"
 
 This means I'd like to change in a token property only one value but it's
 not working.

I don't think you can do that.  I presume that manage_changeProperties
uses the variable names passed in to look the property up in the
property dictionary, and it isn't going to find a property named
'Budget[0]' in that list.  I think you'll have to pass it the
whole value of budget with the appropriate cell modified:

dtml-call "Dict_Text.manage_changeProperties({'Budget':[neuesBudget]+Budget[1:]})"

--RDM


___
Zope maillist  -  [EMAIL PROTECTED]
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 )