#848: [PATCH] DateTimeConvertor fails to throw empty exception
-----------------------------------+----------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: TurboGears | Version: 0.9a5
Severity: normal | Resolution:
Keywords: |
-----------------------------------+----------------------------------------
Comment (by [EMAIL PROTECTED]):
Uploaded a new patch (valid2.diff) that is working right for me. it
removes allow_empty in validators.py as well as widgets/big_widgets.py in
favor of using FancyValidator's not_empty. This requires some logic
reversals in CalendarDatePicker.
In addition it removes the _to_python function in DateTimeConverter
altogether. I am not sure why but until I removed it, if I had the
CalendarDatePicker in a form and something else failed validation, then I
got an error, something about strftime not existing for a unicode object.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/848>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---