Hi Pyloners!

I have a form with two fields, a String and a id (number). I have to
validate the String in two ways (not empty and unique). I need to
check that string field is unique within a table from a database, but
it hasn't unique at whole database. I need that id for validating that
String is unique in the table referenced by the id (making a query and
filtering by id) in a validate function like _to_python(self, value,
state).

My question is: How can I pass two arguments to validation function?,
that is, the string to validate and the id field from the form. I
really appreciate your help!

Thank you!
Antonio.

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.

Reply via email to