Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 16 lines (13 sloc) 490 Bytes
#!/usr/bin/env python
import argparse
from access import db
from access.models import User
parser = argparse.ArgumentParser()
parser.add_argument("name", help="Name of member")
parser.add_argument("email", help="Email address of member")
parser.add_argument("key_id", help="RFID key code")
args = parser.parse_args()
print "Adding user %s <%s> = %d" % (,, int(args.key_id))
user = User(,, int(args.key_id))
Jump to Line
Something went wrong with that request. Please try again.