You need to have some options in your options so that it can guess what validator to use.
You can put in some dummy options and override them later, or put in the options you will be using. For example changing this line works: options=[(1,'One'), (2,'Two')] Ed On 30/01/07, Christopher Arndt <[EMAIL PROTECTED]> wrote: > > Please see the code at > > http://paste.turbogears.org/paste/935 > > This gives me the following error on app startup: > > [...] > File "<myproject>/widgets/base.py", line 13, in ? > class TestFormFields(widgets.WidgetsList): > File "<myproject>/widgets/base.py", line 18, in TestFormFields > options=[] > File > "<myenv>/lib/python2.4/TurboGears-1.0.1-py2.4.egg/turbogears/widgets/meta.py", > line 142, in widget_init > func(self, *args, **kw) > File > "<myenv>/lib/python2.4/TurboGears-1.0.1-py2.4.egg/turbogears/widgets/forms.py", > line 841, 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 > > As you can see, I'm using TurboGears 1.0.1 in a pristine workingenv. I'm > also using kid 0.9.5. > > Can anybody tell me what's happening here? The error always happens when > I try to add a SingleSelectField to my form, regardless of which other > fields I define in my form. It doesN't seem to matter, whether I > actually specify a validation schema in the form instantiation or not. > > Chris > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" 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?hl=en -~----------~----~----~----~------~----~------~--~---

