Kirk Strauser schrieb:
> I have a form with this widget list:
>
> class UserBase(widgets.WidgetsList):
> groupcode =
> widgets.AutoCompleteField(search_controller="/admin/searchgroupcode",
> search_param="input",
> result_name="matches",
> validator=validators.NotEmpty())
>
> Whenever I added that validator, CherryPy immediately stops with this
> backtrace:
>
> AttributeError: 'NotEmpty' object has no attribute 'pre_validators'
Did you import the validators module from "turbogears"?
I.e.
from turbogears import validators
instead of
from formencode validators
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
-~----------~----~----~----~------~----~------~--~---