Changeset 145
- Timestamp:
- 04/20/08 20:29:08 (3 months ago)
- Files:
-
- sucrose/trunk/python/dummy.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sucrose/trunk/python/dummy.py
r113 r145 1 1 #!/usr/bin/env python 2 2 3 import serial4 import re5 import sys6 7 3 from api import sucrose, authenticator 8 from mysql import db9 4 10 5 """ 11 Authenticate on a physical cardswipe 6 Dummy authenticator for testing. 12 7 """ 13 8 14 class Cardswipe(authenticator.Authenticator):9 class DummyAuthenticator(authenticator.Authenticator): 15 10 16 11 def authenticate_purchase(self, location): 17 return True # XXX wit, fix it12 return True 18 13 19 14 def authenticated_user(self):
