[Zope] change parts of list valued properties (was: [Zope] change_properties
Dieter Maurer
dieter@handshake.de
Fri, 8 Sep 2000 22:52:58 +0200 (CEST)
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