This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class VINLookupForm(Form): | |
""" | |
Lookup a VIN form | |
""" | |
vin = TextField(u'Enter VIN', | |
validators=[validators.Required(u'VIN is required for lookup.')]) | |
def validate_vin(self, field): | |
""" | |
Validate a VIN against the 9th position checksum |