Move namespace registration to common.py
This commit is contained in:
parent
8a63c64917
commit
db774e2f73
@ -7,6 +7,9 @@ from passwords import *
|
||||
# it's fine, ssl certs are for losers anyway
|
||||
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
||||
|
||||
ET.register_namespace("hid", "http://www.hidglobal.com/VertX")
|
||||
ET.register_namespace("hid", "http://www.hidcorp.com/VertX")
|
||||
|
||||
fieldnames = "CardNumber,CardFormat,PinRequired,PinCode,ExtendedAccess,ExpiryDate,Forename,Initial,Surname,Email,Phone,Custom1,Custom2,Schedule1,Schedule2,Schedule3,Schedule4,Schedule5,Schedule6,Schedule7,Schedule8".split(",")
|
||||
|
||||
def doImportRequest(ip, params=None, files=None):
|
||||
|
@ -13,8 +13,6 @@ memberLevels = ["CMS Staff",
|
||||
"CMS Unlimited",
|
||||
"CMS Nights & Weekends"]
|
||||
|
||||
ET.register_namespace("hid", "http://www.hidglobal.com/VertX")
|
||||
ET.register_namespace("hid", "http://www.hidcorp.com/VertX")
|
||||
XML = ET.Element("VertXMessage")
|
||||
#TODO: both those might need more stuff:
|
||||
# recordOffset="0" recordCount="4" moreRecords="false"
|
||||
|
Reference in New Issue
Block a user