def getValidator(self, request):
     return deep_dict(self.name,
                         formencode.Schema(**{
                             self.latName:formencode.validators.Number(**self.getValidatorArgs()),
                             self.longName:formencode.validators.Number(**self.getValidatorArgs())
                         })
                     )
Exemple #2
0
 def getValidator(self, request):
     return deep_dict(self.name, TypeAheadValidator(self.attrs))
Exemple #3
0
 def getValidator(self, request):
     return deep_dict(self.name, formencode.ForEach(name = formencode.validators.String(required=True)))
Exemple #4
0
 def getValidator(self, request):
     return deep_dict(self.name, OneOf(map(methodcaller('getKey', request), self.optionGetter(request)), hideList = True))
Exemple #5
0
 def getValidator(self, request):
     return deep_dict(self.name, DateValidator(format = self.format, not_empty = self.attrs.required))
Exemple #6
0
 def getValidator(self, request):
     return deep_dict(self.name, self._validator(**self.getValidatorArgs()))