On Sep 12, 2005, at 11:15 AM, Sokolov Yura wrote:
Ok I see. _manipulator_validate_ is some valid place (is this right?)
How can I get a module from self? Just give me this method and I will
be happy :-) (I am too lazy to search it at the moment :-)
Well, I'm too busy to spell it all out for you -- sorry.
And structure of all_data parameter? It is not documented.
It is -- read http://www.djangoproject.com/documentation/forms/
#validators:
"""
The arguments to a validator function take a little explanation.
field_data is the value of the field in question, and all_data is a
dictionary of all the data being validated. Note that at the point
validators are called all data will still be strings (as
do_html2python hasn't been called yet).
"""
The validator list is the definitive place you're looking for.
Please, read the validator documentation and the model API and it
will answer all your questions.
Jacob