Re: TimeConverter validator
Ian Bicking <[email protected]>
| Newsgroups | gmane.comp.python.formencode |
|---|---|
| Message-ID | <[email protected]> |
Jorge Godoy wrote: > Hi! > > > I noticed that the TimeConverter validator generates tuples as the result of > "to_python". Is there any option (or reason not) to generate something like > datetime.time objects? (mx.DateTime are also acceptable) I think it preceded datetime.time (maybe). Nevertheless, it should certainly accept those objects, and probably based on some option should produce datetime.time objects as well (it shouldn't produce them by default because that won't be backward compatible, though a subclass of TimeConverter certainly could default to datetime.time). Patches welcome (shouldn't be too hard, I think). -- Ian Bicking | [email protected] | http://blog.ianbicking.org ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642