change parts of list valued properties (was: [Zope] change_properties
8 Sep
2000
8 Sep
'00
8:52 p.m.
brocken22@gmx.de writes:
... changing part of a token property ... <dtml-call "Dict_Test.manage_changeProperties({'Budget[0]': neuesBudget})">
You can try <dtml-with Dict_Test> <dtml-call "Budget.remove(Budget[0])"> <!-- removes first element --> <dtml-call "Budget.insert(0,neuesBudget)"> <!-- adds new first element --> </dtml-with> Of cause, you will get an IndexError, if "Budget" is empty. You may need to provide code to handle this case. Dieter
9341
Age (days ago)
9341
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dieter Maurer