1 # vim: set encoding=utf-8 et sw=4 sts=4 :
3 from formencode import Invalid
4 from formencode.validators import *
5 from formencode.compound import *
7 from pymin.item import Item
8 from pymin.validatedclass import Field
11 "Same as :class:`OneOf` but values are uppercased before validation."
12 def validate_python(self, value, state):
13 return OneOf.validate_python(self, value.upper(), state)