Re: Schema messes with state
Ian Bicking <[email protected]> Fri, 11 Apr 2008 18:23:15 -0500
| Newsgroups | gmane.comp.python.formencode |
|---|---|
| Message-ID | <[email protected]> |
Mike Orr wrote: > Why does Schema._to_python add attributes to the 'state' variable? I > thought state was for the user's use and could be anything. Because it can be useful? Probably state should be described more as a container for stuff -- you shouldn't put a model, for instance, directory in state (though you could hang it off an attribute). Schema does try to restore everything. -- Ian Bicking : [email protected] : http://blog.ianbicking.org ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone