Pierre-Julien GRIZEL wrote:
Hi,
I cannot, at first sight, add values to REQUEST.form dictionnary this way :
<dtml-call "REQUEST.form.set ('Var', 'Value')">
Zope returns a key error on "set". The same appends for 'append' method, as if, in fact, REQUEST.form was not a dictionnary.
Does anyone know why and how to bypass this ?...
Regards,
Pierre-Julien Grizel
_______________________________________________ Zope maillist - Zope@zope.org 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 )
I eventually found the answer by creating an external method : def SetValue (self, dictionnary, key, value): """Ajoute une valeur à un dictionnaire""" dictionnary[key] = value Which you can call with <dtml-call SetValue (REQUEST.form, 'tata', 'titi')>. It works !... Regards, P.-J.