#849: [PATCH] error info messages within a form
----------------------------------+-----------------------------------------
 Reporter:  [EMAIL PROTECTED]  |        Owner:  anonymous
     Type:  enhancement           |       Status:  new      
 Priority:  normal                |    Milestone:           
Component:  FastData              |      Version:  0.9a5    
 Severity:  normal                |   Resolution:           
 Keywords:                        |  
----------------------------------+-----------------------------------------
Comment (by anonymous):

 * are you sure you're using g_error_fields in a thread safe way?

 No, I am not sure - but if anyone will found it bugy, I will find a better
 way to do it

 * why place the errors where the help_text belongs.

 Because there is no better built-in support to print the error messages
 within the form. Changing TG widgets classes would take much more time.
 (Anyway - help_text param in formmaker was not used at all)

 * Why not use TG's mechanix to handle validation errors (validate()
 decorator)

 TG's validate() is used to get tg_errors dictionary in controller class.
 Then is passed to function for creating the form. Form creating function
 looks for his name (as key in tg_errors) and shows value (validation error
 message) as help_text

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