Move namespace registration to common.py

This commit is contained in:
Adam Goldsmith 2018-05-14 22:36:24 -04:00
parent 8a63c64917
commit db774e2f73
2 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,9 @@ from passwords import *
# it's fine, ssl certs are for losers anyway # it's fine, ssl certs are for losers anyway
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) 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(",") 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): def doImportRequest(ip, params=None, files=None):

View File

@ -13,8 +13,6 @@ memberLevels = ["CMS Staff",
"CMS Unlimited", "CMS Unlimited",
"CMS Nights & Weekends"] "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") XML = ET.Element("VertXMessage")
#TODO: both those might need more stuff: #TODO: both those might need more stuff:
# recordOffset="0" recordCount="4" moreRecords="false" # recordOffset="0" recordCount="4" moreRecords="false"