hooks/__init__.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 26 Jan 2010 10:34:29 +0100
changeset 4359 fabc680bb0bf
parent 2835 04034421b072
child 4913 083b4d454192
permissions -rw-r--r--
fix Bytes submission pb on POST, due to multiple call to field.process_form_value for a same field. In the case of file, stream.read() doesn't return file's data the second time (since the cursor is at the end of the file). Fix this by having a generic process_form_value method that cache field's value in form.formvalues[field] and so _process_form_value is only called once. You should then override that later method on custom fields.

"""core hooks"""