Daniele Paolella
2009-05-28 11:59:27 UTC
From http://formencode.org/Validator.html#state:
"During a Schema (dictionary) validation the instance variable key and
full_dict will be added â key is the current key (i.e., validator name),
and full_dict is the rest of the values being validated."
But state.key is not assigned.
Probably this is a feature that few people take advantage of: I've been using
state.key to build SQLAlchemy queries out of form input.
I included a tiny test, for Ian's joy of course!
Reported here:
http://sourceforge.net/tracker/?func=detail&aid=2797859&group_id=91231&atid=596416
Cheers.
"During a Schema (dictionary) validation the instance variable key and
full_dict will be added â key is the current key (i.e., validator name),
and full_dict is the rest of the values being validated."
But state.key is not assigned.
Probably this is a feature that few people take advantage of: I've been using
state.key to build SQLAlchemy queries out of form input.
I included a tiny test, for Ian's joy of course!
Reported here:
http://sourceforge.net/tracker/?func=detail&aid=2797859&group_id=91231&atid=596416
Cheers.