This file contains hidden or 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 |
This file contains hidden or 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
| import asyncore | |
| import socket | |
| import json | |
| state = {} | |
| class UpdateMsg(object): | |
| def __init__(self, data): | |
| sdata = data.strip().split(' ') | |
| self.player = sdata[0] |
NewerOlder