#721: Problems with Schema validation
-------------------------------------------+--------------------------------
 Reporter:  Baruch <[EMAIL PROTECTED]>  |        Owner:  anonymous
     Type:  defect                         |       Status:  closed   
 Priority:  normal                         |    Milestone:  0.9a4    
Component:  Widgets                        |      Version:  0.9a3    
 Severity:  normal                         |   Resolution:  invalid  
 Keywords:                                 |  
-------------------------------------------+--------------------------------
Changes (by alberto):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 It's not a bug in TG code but a horrible lack of docs ;)
 The problem was that you decorated the "register" method with validate so
 the form was being validated when requesting "/register". Too bad no data
 was being submitted, hence the KeyError exception. On the other hand, this
 case should have been handle gracefully (That is, display an error on the
 form) but the error handler was not rediecting the the method that
 displays the form.

 Well, better see the corrected tgtest and see for yourself (I've modified
 register.kid and controllers.py, you can diff to see the changes).

 Alberto

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/721>
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