#848: 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                 |    Keywords:           
-----------------------------------+----------------------------------------
 {{{
 import turbogears.validators as v

 v = v.DateTimeConverter(allow_empty=False)
 print v.to_python("")
 }}}

 This should throw an exception, but prints "None".

 I traced this a little and it looks like it's calling
 FancyValidator.to_python() instead of DateTimeConverter._to_python(). Of
 course FV has no knowledge of allow_empty and does the wrong thing. I
 don't understand the _to vs. to so thats as far as I got.

-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to