Formulator DateTime validation bug
Clemens Robbenhaar <robbenhaar-WaVJUzJ3u31Wk0Htik3J/[email protected]> Sat, 24 Jul 2004 23:45:08 +0200
| Newsgroups | gmane.comp.web.zope.formulator.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Maciej, [...] > > Formulator creates DateTime object from form's input. > It catches some string exceptions to detect invalid date (time) > input. However, Zope's DateTime object raises > DateError or TimeError, not string exceptions, at least recent > versions of Zope (2.7+) do. > > Two patches that fix this issue in two different > ways are attached to this message. > > I don't know whether DateError and TimeError are new in Zope. > It might be that DateTime did raise string exceptions in > earlier versions of Zope. Indeed this has changed in Zope 2.7; previous Zope versions raised some string based exceptions. Thus I have takes the first patch and put it into the CVS. It will be included in the next release, I think. Thanks a lot for the patches! Cheers, Clemens