diff --git a/common.py b/common.py index 422f5d5..49e0f19 100644 --- a/common.py +++ b/common.py @@ -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): diff --git a/old_xml_based.py b/old_xml_based.py index 27a0ec2..6693d35 100755 --- a/old_xml_based.py +++ b/old_xml_based.py @@ -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"