Comment
Above in this comment thread:
Formulator HOWTO »
Comment
It doesn't seem to work in a python product
Posted by: jmeile at 2006-10-04I found that somehow this howto is either outdated or only works for dtml.
If you scan the request after submiting a form in a python method, then you
will find that Formulator stores: field_animal
and not animal
as the HowTo says.
Comment
1159979857
Posted by: jmeile at 2006-10-04Comment
This should be clarified
Posted by: jmeile at 2006-10-05Ok, now I got it. I guess when working with this in dtml, if there are no errors, then the field values will be stored again in the request. So, when you say
fieldValues = form.validate_all_to_request(REQUEST)
Then if there is no error, fieldValues will contain a dictionary with the fields' real names and its values.