#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 Jiri Popek <[EMAIL PROTECTED]>):

 Unfortunately not-raises an exception:

 {{{
 File "turbogears/widgets/forms.py", line 715, in __init__
     raise ValueError, ("No validator specified and couldn't "
 ValueError: No validator specified and couldn't guess one. I cannot work
 properly without it
 }}}

 This exception is raised when fetching from DB using:

 {{{
 def get_all_genres():
         return [(a.id, a.name) for a in Genre.select()]
 }}}

 which returns [(0, u'Comedy'), (1, u'Sci-Fi'), (2, u'History')], but if
 get_all_genres() returns a fixed list:

 {{{

 def get_all_genres():
         return [(0, u'Comedy'), (1, u'Sci-Fi'), (2, u'History')]
 }}}

 the code works fine. Is there bug in MultipleSelectField ?
 Thanx for all posts anyway.

 Jiri

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