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()) > > I've Googled for what I thought were the appropriate terms but haven't been > able to find anything for this problem. I *can* use validators.NotEmpty() > on other fields in the same class, just not this AutoCompleteField.
AutoCompletField is a CompoundWidget and therefor needs a validation schema, not a single validator. The meber widgets are "text_field" and "hidden_field". 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 -~----------~----~----~----~------~----~------~--~---

