PATCH: state.key is not set during Schema validation.
Daniele Paolella <[email protected]> Thu, 28 May 2009 13:59:27 +0200
| Newsgroups | gmane.comp.python.formencode |
|---|---|
| Organization | MCR SERVICE |
| Message-ID | <[email protected]> |
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. ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ FormEncode-discuss mailing list FormEncode-discuss-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/formencode-discuss