Discussion:
[FE-discuss] PATCH: state.key is not set during Schema validation.
Daniele Paolella
2009-05-28 11:59:27 UTC
Permalink
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.

Loading...