MainThread: |> server/SrvDaemon.py:run MainThread: | 331 try: MainThread: | 332 log.info("Xend Daemon started") MainThread: | 334 xc = xen.lowlevel.xc.xc() MainThread: | 335 xinfo = xc.xeninfo() MainThread: | 336 log.info("Xend changeset: %s.", xinfo['xen_changeset']) MainThread: | 337 del xc MainThread: | 339 relocate.listenRelocation() MainThread: | > server/relocate.py:listenRelocation MainThread: | 143 xoptions = XendOptions.instance() MainThread: | > XendOptions.py:instance MainThread: | 553 try: MainThread: | 554 inst MainThread: | 560 return inst MainThread: | < XendOptions.py:instance MainThread: | 144 if xoptions.get_xend_unix_server(): MainThread: | > XendOptions.py:get_xend_unix_server MainThread: | 309 return self.get_config_bool("xend-unix-server", self.xend_unix_server_default) MainThread: | > XendOptions.py:get_config_bool MainThread: | 478 v = string.lower(str(self.get_config_value(name, val))) MainThread: | > XendOptions.py:get_config_value MainThread: | 475 return sxp.child_value(self.config, name, val=val) MainThread: | < XendOptions.py:get_config_value MainThread: | 479 if v in ['yes', 'y', '1', 'on', 'true', 't']: MainThread: | 481 if v in ['no', 'n', '0', 'off', 'false', 'f']: MainThread: | 482 return False MainThread: | < XendOptions.py:get_config_bool MainThread: | < XendOptions.py:get_xend_unix_server MainThread: | 148 interface = xoptions.get_xend_relocation_address() MainThread: | > XendOptions.py:get_xend_relocation_address MainThread: | 304 return self.get_config_string('xend-relocation-address', self.xend_relocation_address_default) MainThread: | > XendOptions.py:get_config_string MainThread: | 493 return self.get_config_value(name, val) MainThread: | > XendOptions.py:get_config_value MainThread: | 475 return sxp.child_value(self.config, name, val=val) MainThread: | < XendOptions.py:get_config_value MainThread: | < XendOptions.py:get_config_string MainThread: | < XendOptions.py:get_xend_relocation_address MainThread: | 150 hosts_allow = xoptions.get_xend_relocation_hosts_allow() MainThread: | > XendOptions.py:get_xend_relocation_hosts_allow MainThread: | 287 return self.get_config_string("xend-relocation-hosts-allow", MainThread: | 288 self.xend_relocation_hosts_allow_default) MainThread: | > XendOptions.py:get_config_string MainThread: | 493 return self.get_config_value(name, val) MainThread: | > XendOptions.py:get_config_value MainThread: | 475 return sxp.child_value(self.config, name, val=val) MainThread: | < XendOptions.py:get_config_value MainThread: | < XendOptions.py:get_config_string MainThread: | < XendOptions.py:get_xend_relocation_hosts_allow MainThread: | 151 if hosts_allow == '': MainThread: | 152 hosts_allow = None MainThread: | 156 if xoptions.get_xend_relocation_server(): MainThread: | > XendOptions.py:get_xend_relocation_server MainThread: | 232 return self.get_config_bool("xend-relocation-server", MainThread: | 233 self.xend_relocation_server_default) MainThread: | > XendOptions.py:get_config_bool MainThread: | 478 v = string.lower(str(self.get_config_value(name, val))) MainThread: | > XendOptions.py:get_config_value MainThread: | 475 return sxp.child_value(self.config, name, val=val) MainThread: | < XendOptions.py:get_config_value MainThread: | 479 if v in ['yes', 'y', '1', 'on', 'true', 't']: MainThread: | 481 if v in ['no', 'n', '0', 'off', 'false', 'f']: MainThread: | 482 return False MainThread: | < XendOptions.py:get_config_bool MainThread: | < XendOptions.py:get_xend_relocation_server MainThread: | 161 if xoptions.get_xend_relocation_ssl_server(): MainThread: | > XendOptions.py:get_xend_relocation_ssl_server MainThread: | 238 return self.get_config_bool("xend-relocation-ssl-server", MainThread: | 239 self.xend_relocation_ssl_server_default) MainThread: | > XendOptions.py:get_config_bool MainThread: | 478 v = string.lower(str(self.get_config_value(name, val))) MainThread: | > XendOptions.py:get_config_value MainThread: | 475 return sxp.child_value(self.config, name, val=val) MainThread: | < XendOptions.py:get_config_value MainThread: | 479 if v in ['yes', 'y', '1', 'on', 'true', 't']: MainThread: | 481 if v in ['no', 'n', '0', 'off', 'false', 'f']: MainThread: | 482 return False MainThread: | < XendOptions.py:get_config_bool MainThread: | < XendOptions.py:get_xend_relocation_ssl_server MainThread: | < server/relocate.py:listenRelocation MainThread: | 340 udevevent.listenUdevEvent() MainThread: | > server/udevevent.py:listenUdevEvent MainThread: | 89 xoptions = XendOptions.instance() MainThread: | > XendOptions.py:instance MainThread: | 553 try: MainThread: | 554 inst MainThread: | 560 return inst MainThread: | < XendOptions.py:instance MainThread: | 90 if xoptions.get_xend_udev_event_server(): MainThread: | > XendOptions.py:get_xend_udev_event_server MainThread: | 260 return self.get_config_bool("xend-udev-event-server", MainThread: | 261 self.xend_udev_event_server_default) MainThread: | > XendOptions.py:get_config_bool MainThread: | 478 v = string.lower(str(self.get_config_value(name, val))) MainThread: | > XendOptions.py:get_config_value MainThread: | 475 return sxp.child_value(self.config, name, val=val) MainThread: | < XendOptions.py:get_config_value MainThread: | 479 if v in ['yes', 'y', '1', 'on', 'true', 't']: MainThread: | 481 if v in ['no', 'n', '0', 'off', 'false', 'f']: MainThread: | 482 return False MainThread: | < XendOptions.py:get_config_bool MainThread: | < XendOptions.py:get_xend_udev_event_server MainThread: | < server/udevevent.py:listenUdevEvent MainThread: | 341 servers = SrvServer.create() MainThread: | > server/SrvRoot.py:__init__ MainThread: | 36 SrvDir.__init__(self) MainThread: | 37 for (name, klass) in self.subdirs: MainThread: | 38 self.add(name, klass) MainThread: | 37 for (name, klass) in self.subdirs: MainThread: | 38 self.add(name, klass) MainThread: | 37 for (name, klass) in self.subdirs: MainThread: | 38 self.add(name, klass) MainThread: | 37 for (name, klass) in self.subdirs: MainThread: | 39 for (name, klass) in self.subdirs: MainThread: | 40 self.get(name) MainThread: | > server/SrvNode.py: MainThread: | 19 from xen.web.SrvDir import SrvDir MainThread: | 20 from xen.xend import sxp MainThread: | 21 from xen.xend import XendNode MainThread: | 22 from xen.xend.Args import FormFn MainThread: | 24 class SrvNode(SrvDir): MainThread: | > server/SrvNode.py:SrvNode MainThread: | 24 class SrvNode(SrvDir): MainThread: | 26 """ MainThread: | 28 def __init__(self): MainThread: | 34 def op_shutdown(self, _1, _2): MainThread: | 38 def op_reboot(self, _1, _2): MainThread: | 42 def render_POST(self, req): MainThread: | 45 def render_GET(self, req): MainThread: | 63 def info(self): MainThread: | < server/SrvNode.py:SrvNode MainThread: | < server/SrvNode.py: MainThread: | > server/SrvNode.py:__init__ MainThread: | 29 SrvDir.__init__(self) MainThread: | 30 self.xn = XendNode.instance() MainThread: | > XendNode.py:instance MainThread: | 1137 try: MainThread: | 1138 inst MainThread: | ! Exception: Traceback (most recent call last): File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 1138, in instance inst NameError: global name 'inst' is not defined MainThread: | 1139 except: MainThread: | 1140 inst = XendNode() MainThread: | > XendNode.py:__init__ MainThread: | 64 self.xc = xen.lowlevel.xc.xc() MainThread: | 65 self.state_store = XendStateStore(xendoptions().get_xend_state_path()) MainThread: | |> XendOptions.py:instance MainThread: | | 553 try: MainThread: | | 554 inst MainThread: | | 560 return inst MainThread: | |< XendOptions.py:instance MainThread: | |> XendOptions.py:get_xend_state_path MainThread: | | 324 return self.get_config_string("xend-state-path", self.xend_state_path_default) MainThread: | | > XendOptions.py:get_config_string MainThread: | | 493 return self.get_config_value(name, val) MainThread: | | > XendOptions.py:get_config_value MainThread: | | 475 return sxp.child_value(self.config, name, val=val) MainThread: | | < XendOptions.py:get_config_value MainThread: | | < XendOptions.py:get_config_string MainThread: | |< XendOptions.py:get_xend_state_path MainThread: | |> XendStateStore.py:__init__ MainThread: | | 75 self.base = base MainThread: | | 76 if not os.path.exists(self.base): MainThread: | |< XendStateStore.py:__init__ MainThread: | 66 self.monitor = XendMonitor() MainThread: | 67 self.monitor.start() MainThread: | 70 saved_host = self.state_store.load_state('host') MainThread: | |> XendStateStore.py:load_state MainThread: | | 100 xml_path = self._xml_file(cls) MainThread: | | > XendStateStore.py:_xml_file MainThread: | | 87 return os.path.join(self.base, '%s.xml' % cls) MainThread: | | < XendStateStore.py:_xml_file MainThread: | | 101 if not os.path.exists(xml_path): MainThread: | | 104 dom = minidom.parse(xml_path) MainThread: | | 105 root = dom.documentElement MainThread: | | 106 state = {} MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 133 cls_dict[val_name] = {} MainThread: | | 134 for item in val_elem.childNodes: MainThread: | | 135 if item.nodeType != Node.ELEMENT_NODE: MainThread: | | 136 continue # skip non element nodes MainThread: | | 134 for item in val_elem.childNodes: MainThread: | | 135 if item.nodeType != Node.ELEMENT_NODE: MainThread: | | 137 k = item.getAttribute('key').encode('utf8') MainThread: | | 138 v = item.getAttribute('value').encode('utf8') MainThread: | | 139 cls_dict[val_name][k] = v MainThread: | | 134 for item in val_elem.childNodes: MainThread: | | 135 if item.nodeType != Node.ELEMENT_NODE: MainThread: | | 136 continue # skip non element nodes MainThread: | | 134 for item in val_elem.childNodes: MainThread: | | 135 if item.nodeType != Node.ELEMENT_NODE: MainThread: | | 137 k = item.getAttribute('key').encode('utf8') MainThread: | | 138 v = item.getAttribute('value').encode('utf8') MainThread: | | 139 cls_dict[val_name][k] = v MainThread: | | 134 for item in val_elem.childNodes: MainThread: | | 135 if item.nodeType != Node.ELEMENT_NODE: MainThread: | | 136 continue # skip non element nodes MainThread: | | 134 for item in val_elem.childNodes: MainThread: | | 135 if item.nodeType != Node.ELEMENT_NODE: MainThread: | | 137 k = item.getAttribute('key').encode('utf8') MainThread: | | 138 v = item.getAttribute('value').encode('utf8') MainThread: | | 139 cls_dict[val_name][k] = v MainThread: | | 134 for item in val_elem.childNodes: MainThread: | | 135 if item.nodeType != Node.ELEMENT_NODE: MainThread: | | 136 continue # skip non element nodes MainThread: | | 134 for item in val_elem.childNodes: MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 150 dom.unlink() MainThread: | | 151 return state MainThread: | |< XendStateStore.py:load_state MainThread: | 71 if saved_host and len(saved_host.keys()) == 1: MainThread: | 72 self.uuid = saved_host.keys()[0] MainThread: | 73 host = saved_host[self.uuid] MainThread: | 74 self.name = host.get('name_label', socket.gethostname()) MainThread: | 75 self.desc = host.get('name_description', '') MainThread: | 76 self.host_metrics_uuid = host.get('metrics_uuid', MainThread: | 77 uuid.createString()) MainThread: | |> uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | |< uuid.py:createString MainThread: | 78 try: MainThread: | 79 self.other_config = eval(host['other_config']) MainThread: | ! Exception: Traceback (most recent call last): File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 79, in __init__ self.other_config = eval(host['other_config']) TypeError: eval() arg 1 must be a string or code object MainThread: | 80 except: MainThread: | 81 self.other_config = {} MainThread: | 82 self.cpus = {} MainThread: | 93 self.other_config["xen_pagesize"] = self.xeninfo_dict()["xen_pagesize"] MainThread: | |> XendNode.py:xeninfo_dict MainThread: | |1046 return dict(self.xeninfo()) MainThread: | | > XendNode.py:xeninfo MainThread: | | 988 info = self.xc.xeninfo() MainThread: | | 989 info['xen_scheduler'] = self.xenschedinfo() MainThread: | | > XendNode.py:xenschedinfo MainThread: | | 979 sched_id = self.xc.sched_id_get() MainThread: | | 980 if sched_id == xen.lowlevel.xc.XEN_SCHEDULER_SEDF: MainThread: | | 982 elif sched_id == xen.lowlevel.xc.XEN_SCHEDULER_CREDIT: MainThread: | | 983 return 'credit' MainThread: | | < XendNode.py:xenschedinfo MainThread: | | 991 ITEM_ORDER = ['xen_major', MainThread: | | 992 'xen_minor', MainThread: | | 993 'xen_extra', MainThread: | | 994 'xen_caps', MainThread: | | 995 'xen_scheduler', MainThread: | | 996 'xen_pagesize', MainThread: | | 997 'platform_params', MainThread: | | 998 'xen_changeset', MainThread: | | 999 'xen_commandline', MainThread: | | 1000 'cc_compiler', MainThread: | | 1001 'cc_compile_by', MainThread: | | 1002 'cc_compile_domain', MainThread: | | 1003 'cc_compile_date', MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | < XendNode.py:xeninfo MainThread: | |< XendNode.py:xeninfo_dict MainThread: | 94 self.other_config["platform_params"] = self.xeninfo_dict()["platform_params"] MainThread: | |> XendNode.py:xeninfo_dict MainThread: | |1046 return dict(self.xeninfo()) MainThread: | | > XendNode.py:xeninfo MainThread: | | 988 info = self.xc.xeninfo() MainThread: | | 989 info['xen_scheduler'] = self.xenschedinfo() MainThread: | | > XendNode.py:xenschedinfo MainThread: | | 979 sched_id = self.xc.sched_id_get() MainThread: | | 980 if sched_id == xen.lowlevel.xc.XEN_SCHEDULER_SEDF: MainThread: | | 982 elif sched_id == xen.lowlevel.xc.XEN_SCHEDULER_CREDIT: MainThread: | | 983 return 'credit' MainThread: | | < XendNode.py:xenschedinfo MainThread: | | 991 ITEM_ORDER = ['xen_major', MainThread: | | 992 'xen_minor', MainThread: | | 993 'xen_extra', MainThread: | | 994 'xen_caps', MainThread: | | 995 'xen_scheduler', MainThread: | | 996 'xen_pagesize', MainThread: | | 997 'platform_params', MainThread: | | 998 'xen_changeset', MainThread: | | 999 'xen_commandline', MainThread: | | 1000 'cc_compiler', MainThread: | | 1001 'cc_compile_by', MainThread: | | 1002 'cc_compile_domain', MainThread: | | 1003 'cc_compile_date', MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | < XendNode.py:xeninfo MainThread: | |< XendNode.py:xeninfo_dict MainThread: | 95 self.other_config["xen_commandline"] = self.xeninfo_dict()["xen_commandline"] MainThread: | |> XendNode.py:xeninfo_dict MainThread: | |1046 return dict(self.xeninfo()) MainThread: | | > XendNode.py:xeninfo MainThread: | | 988 info = self.xc.xeninfo() MainThread: | | 989 info['xen_scheduler'] = self.xenschedinfo() MainThread: | | > XendNode.py:xenschedinfo MainThread: | | 979 sched_id = self.xc.sched_id_get() MainThread: | | 980 if sched_id == xen.lowlevel.xc.XEN_SCHEDULER_SEDF: MainThread: | | 982 elif sched_id == xen.lowlevel.xc.XEN_SCHEDULER_CREDIT: MainThread: | | 983 return 'credit' MainThread: | | < XendNode.py:xenschedinfo MainThread: | | 991 ITEM_ORDER = ['xen_major', MainThread: | | 992 'xen_minor', MainThread: | | 993 'xen_extra', MainThread: | | 994 'xen_caps', MainThread: | | 995 'xen_scheduler', MainThread: | | 996 'xen_pagesize', MainThread: | | 997 'platform_params', MainThread: | | 998 'xen_changeset', MainThread: | | 999 'xen_commandline', MainThread: | | 1000 'cc_compiler', MainThread: | | 1001 'cc_compile_by', MainThread: | | 1002 'cc_compile_domain', MainThread: | | 1003 'cc_compile_date', MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 1006 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | < XendNode.py:xeninfo MainThread: | |< XendNode.py:xeninfo_dict MainThread: | 98 saved_cpus = self.state_store.load_state('cpu') MainThread: | |> XendStateStore.py:load_state MainThread: | | 100 xml_path = self._xml_file(cls) MainThread: | | > XendStateStore.py:_xml_file MainThread: | | 87 return os.path.join(self.base, '%s.xml' % cls) MainThread: | | < XendStateStore.py:_xml_file MainThread: | | 101 if not os.path.exists(xml_path): MainThread: | | 104 dom = minidom.parse(xml_path) MainThread: | | 105 root = dom.documentElement MainThread: | | 106 state = {} MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 150 dom.unlink() MainThread: | | 151 return state MainThread: | |< XendStateStore.py:load_state MainThread: | 99 for cpu_uuid, cpu in saved_cpus.items(): MainThread: | 100 self.cpus[cpu_uuid] = cpu MainThread: | 99 for cpu_uuid, cpu in saved_cpus.items(): MainThread: | 100 self.cpus[cpu_uuid] = cpu MainThread: | 99 for cpu_uuid, cpu in saved_cpus.items(): MainThread: | 100 self.cpus[cpu_uuid] = cpu MainThread: | 99 for cpu_uuid, cpu in saved_cpus.items(): MainThread: | 100 self.cpus[cpu_uuid] = cpu MainThread: | 99 for cpu_uuid, cpu in saved_cpus.items(): MainThread: | 102 cpuinfo = osdep.get_cpuinfo() MainThread: | |> osdep.py:_linux_get_cpuinfo MainThread: | | 125 cpuinfo = {} MainThread: | | 126 f = file('/proc/cpuinfo', 'r') MainThread: | | 127 try: MainThread: | | 128 p = -1 MainThread: | | 129 d = {} MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 137 if p != -1: MainThread: | | 139 p = int(val) MainThread: | | 140 d = {} MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 133 continue MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 137 if p != -1: MainThread: | | 138 cpuinfo[p] = d MainThread: | | 139 p = int(val) MainThread: | | 140 d = {} MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 133 continue MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 137 if p != -1: MainThread: | | 138 cpuinfo[p] = d MainThread: | | 139 p = int(val) MainThread: | | 140 d = {} MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 133 continue MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 137 if p != -1: MainThread: | | 138 cpuinfo[p] = d MainThread: | | 139 p = int(val) MainThread: | | 140 d = {} MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 134 key = keyvalue[0].strip() MainThread: | | 135 val = keyvalue[1].strip() MainThread: | | 136 if key == 'processor': MainThread: | | 142 d[key] = val MainThread: | | 130 for line in f: MainThread: | | 131 keyvalue = line.split(':') MainThread: | | 132 if len(keyvalue) != 2: MainThread: | | 133 continue MainThread: | | 130 for line in f: MainThread: | | 143 cpuinfo[p] = d MainThread: | | 144 return cpuinfo MainThread: | | 146 f.close() MainThread: | |< osdep.py:_linux_get_cpuinfo MainThread: | 103 physinfo = self.physinfo_dict() MainThread: | |> XendNode.py:physinfo_dict MainThread: | |1048 return dict(self.physinfo()) MainThread: | | > XendNode.py:physinfo MainThread: | | 910 info = self.xc.physinfo() MainThread: | | 912 info['cpu_mhz'] = info['cpu_khz'] / 1000 MainThread: | | 915 info['total_memory'] = info['total_memory'] / 1024 MainThread: | | 916 info['free_memory'] = info['free_memory'] / 1024 MainThread: | | 917 info['node_to_cpu'] = self.format_node_to_cpu(info) MainThread: | | > XendNode.py:format_node_to_cpu MainThread: | | 882 str='' MainThread: | | 883 whitespace='' MainThread: | | 884 try: MainThread: | | 885 node_to_cpu=pinfo['node_to_cpu'] MainThread: | | 886 for i in range(0, pinfo['max_node_id']+1): MainThread: | | 887 str+='%snode%d:%s\n' % (whitespace, MainThread: | | 888 i, MainThread: | | 889 self.list_to_strrange(node_to_cpu[i])) MainThread: | | > XendNode.py:list_to_strrange MainThread: | | 879 return self.format_pairs(self.list_to_rangepairs(list)) MainThread: | | > XendNode.py:list_to_rangepairs MainThread: | | 849 cmap.sort() MainThread: | | 850 pairs = [] MainThread: | | 851 x = y = 0 MainThread: | | 852 for i in range(0,len(cmap)): MainThread: | | 853 try: MainThread: | | 854 if ((cmap[y+1] - cmap[i]) > 1): MainThread: | | 858 y = y + 1 MainThread: | | 852 for i in range(0,len(cmap)): MainThread: | | 853 try: MainThread: | | 854 if ((cmap[y+1] - cmap[i]) > 1): MainThread: | | 858 y = y + 1 MainThread: | | 852 for i in range(0,len(cmap)): MainThread: | | 853 try: MainThread: | | 854 if ((cmap[y+1] - cmap[i]) > 1): MainThread: | | 858 y = y + 1 MainThread: | | 852 for i in range(0,len(cmap)): MainThread: | | 853 try: MainThread: | | 854 if ((cmap[y+1] - cmap[i]) > 1): MainThread: | | ! Exception: Traceback (most recent call last): File "/usr/lib/xen-4.0/lib/python/xen/xend/XendNode.py", line 854, in list_to_rangepairs if ((cmap[y+1] - cmap[i]) > 1): IndexError: list index out of range MainThread: | | 860 except IndexError: MainThread: | | 861 pairs.append((cmap[x],cmap[y])) MainThread: | | 852 for i in range(0,len(cmap)): MainThread: | | 863 return pairs MainThread: | | < XendNode.py:list_to_rangepairs MainThread: | | > XendNode.py:format_pairs MainThread: | | 866 if not pairs: MainThread: | | 868 out = "" MainThread: | | 869 for f,s in pairs: MainThread: | | 870 if (f==s): MainThread: | | 873 out += '%d-%d'%(f,s) MainThread: | | 874 out += ',' MainThread: | | 869 for f,s in pairs: MainThread: | | 876 return out[:-1] MainThread: | | < XendNode.py:format_pairs MainThread: | | < XendNode.py:list_to_strrange MainThread: | | 890 whitespace='%25s' % '' MainThread: | | 886 for i in range(0, pinfo['max_node_id']+1): MainThread: | | 893 return str[:-1]; MainThread: | | < XendNode.py:format_node_to_cpu MainThread: | | 919 self.format_node_to_memory(info, 'node_to_memory') MainThread: | | > XendNode.py:format_node_to_memory MainThread: | | 895 str='' MainThread: | | 896 whitespace='' MainThread: | | 897 try: MainThread: | | 898 node_to_memory=pinfo[key] MainThread: | | 899 for i in range(0, pinfo['max_node_id']+1): MainThread: | | 900 str+='%snode%d:%d\n' % (whitespace, MainThread: | | 901 i, MainThread: | | 902 node_to_memory[i] / 1024) MainThread: | | 903 whitespace='%25s' % '' MainThread: | | 899 for i in range(0, pinfo['max_node_id']+1): MainThread: | | 906 return str[:-1]; MainThread: | | < XendNode.py:format_node_to_memory MainThread: | | 921 self.format_node_to_memory(info, 'node_to_dma32_mem') MainThread: | | > XendNode.py:format_node_to_memory MainThread: | | 895 str='' MainThread: | | 896 whitespace='' MainThread: | | 897 try: MainThread: | | 898 node_to_memory=pinfo[key] MainThread: | | 899 for i in range(0, pinfo['max_node_id']+1): MainThread: | | 900 str+='%snode%d:%d\n' % (whitespace, MainThread: | | 901 i, MainThread: | | 902 node_to_memory[i] / 1024) MainThread: | | 903 whitespace='%25s' % '' MainThread: | | 899 for i in range(0, pinfo['max_node_id']+1): MainThread: | | 906 return str[:-1]; MainThread: | | < XendNode.py:format_node_to_memory MainThread: | | 923 ITEM_ORDER = ['nr_cpus', MainThread: | | 924 'nr_nodes', MainThread: | | 925 'cores_per_socket', MainThread: | | 926 'threads_per_core', MainThread: | | 927 'cpu_mhz', MainThread: | | 928 'hw_caps', MainThread: | | 929 'virt_caps', MainThread: | | 930 'total_memory', MainThread: | | 931 'free_memory', MainThread: | | 932 'node_to_cpu', MainThread: | | 933 'node_to_memory', MainThread: | | 934 'node_to_dma32_mem', MainThread: | | 935 'max_node_id' MainThread: | | 938 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 938 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 938 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 938 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 938 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 938 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 938 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 938 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 938 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 938 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 938 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 938 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 938 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | 938 return [[k, info[k]] for k in ITEM_ORDER] MainThread: | | < XendNode.py:physinfo MainThread: | |< XendNode.py:physinfo_dict MainThread: | 104 cpu_count = physinfo['nr_cpus'] MainThread: | 105 cpu_features = physinfo['hw_caps'] MainThread: | 106 virt_caps = physinfo['virt_caps'] MainThread: | 110 if cpu_count != len(self.cpus): MainThread: | 116 for u in self.cpus.keys(): MainThread: | 117 number = self.cpus[u]['number'] MainThread: | 121 if not cpuinfo.has_key(number): MainThread: | 123 if arch.type == "x86": MainThread: | 124 self.cpus[u].update( MainThread: | 125 { 'host' : self.uuid, MainThread: | 126 'features' : cpu_features, MainThread: | 127 'virt_caps': virt_caps, MainThread: | 128 'speed' : int(float(cpuinfo[number]['cpu MHz'])), MainThread: | 129 'vendor' : cpuinfo[number]['vendor_id'], MainThread: | 130 'modelname': cpuinfo[number]['model name'], MainThread: | 131 'stepping' : cpuinfo[number]['stepping'], MainThread: | 132 'flags' : cpuinfo[number]['flags'], MainThread: | 116 for u in self.cpus.keys(): MainThread: | 117 number = self.cpus[u]['number'] MainThread: | 121 if not cpuinfo.has_key(number): MainThread: | 123 if arch.type == "x86": MainThread: | 124 self.cpus[u].update( MainThread: | 125 { 'host' : self.uuid, MainThread: | 126 'features' : cpu_features, MainThread: | 127 'virt_caps': virt_caps, MainThread: | 128 'speed' : int(float(cpuinfo[number]['cpu MHz'])), MainThread: | 129 'vendor' : cpuinfo[number]['vendor_id'], MainThread: | 130 'modelname': cpuinfo[number]['model name'], MainThread: | 131 'stepping' : cpuinfo[number]['stepping'], MainThread: | 132 'flags' : cpuinfo[number]['flags'], MainThread: | 116 for u in self.cpus.keys(): MainThread: | 117 number = self.cpus[u]['number'] MainThread: | 121 if not cpuinfo.has_key(number): MainThread: | 123 if arch.type == "x86": MainThread: | 124 self.cpus[u].update( MainThread: | 125 { 'host' : self.uuid, MainThread: | 126 'features' : cpu_features, MainThread: | 127 'virt_caps': virt_caps, MainThread: | 128 'speed' : int(float(cpuinfo[number]['cpu MHz'])), MainThread: | 129 'vendor' : cpuinfo[number]['vendor_id'], MainThread: | 130 'modelname': cpuinfo[number]['model name'], MainThread: | 131 'stepping' : cpuinfo[number]['stepping'], MainThread: | 132 'flags' : cpuinfo[number]['flags'], MainThread: | 116 for u in self.cpus.keys(): MainThread: | 117 number = self.cpus[u]['number'] MainThread: | 121 if not cpuinfo.has_key(number): MainThread: | 123 if arch.type == "x86": MainThread: | 124 self.cpus[u].update( MainThread: | 125 { 'host' : self.uuid, MainThread: | 126 'features' : cpu_features, MainThread: | 127 'virt_caps': virt_caps, MainThread: | 128 'speed' : int(float(cpuinfo[number]['cpu MHz'])), MainThread: | 129 'vendor' : cpuinfo[number]['vendor_id'], MainThread: | 130 'modelname': cpuinfo[number]['model name'], MainThread: | 131 'stepping' : cpuinfo[number]['stepping'], MainThread: | 132 'flags' : cpuinfo[number]['flags'], MainThread: | 116 for u in self.cpus.keys(): MainThread: | 150 self.srs = {} MainThread: | 152 self._init_networks() MainThread: | |> XendNode.py:_init_networks MainThread: | | 166 saved_networks = self.state_store.load_state('network') MainThread: | | > XendStateStore.py:load_state MainThread: | | 100 xml_path = self._xml_file(cls) MainThread: | | > XendStateStore.py:_xml_file MainThread: | | 87 return os.path.join(self.base, '%s.xml' % cls) MainThread: | | < XendStateStore.py:_xml_file MainThread: | | 101 if not os.path.exists(xml_path): MainThread: | | 104 dom = minidom.parse(xml_path) MainThread: | | 105 root = dom.documentElement MainThread: | | 106 state = {} MainThread: | | 108 for child in root.childNodes: MainThread: | | 150 dom.unlink() MainThread: | | 151 return state MainThread: | | < XendStateStore.py:load_state MainThread: | | 167 if saved_networks: MainThread: | | 179 for i in xrange(20): MainThread: | | 180 bridges = Brctl.get_state().keys() MainThread: | | 181 if 'tmpbridge' in bridges: MainThread: | | 184 break MainThread: | | 186 configured_bridges = [XendAPIStore.get( MainThread: | | 189 for network_uuid in XendNetwork.get_all()] MainThread: | | > XendBase.py:get_all MainThread: | | 108 return XendAPIStore.get_all_uuid(cls.getClass()) MainThread: | | > XendNetwork.py:getClass MainThread: | | 43 return "network" MainThread: | | < XendNetwork.py:getClass MainThread: | | > XendAPIStore.py:get_all_uuid MainThread: | | 77 __classes_lock.acquire() MainThread: | | 78 try: MainThread: | | 79 return [uuid MainThread: | | 80 for (uuid, t) in __classes.keys() MainThread: | | 83 __classes_lock.release() MainThread: | | < XendAPIStore.py:get_all_uuid MainThread: | | < XendBase.py:get_all MainThread: | | 190 unconfigured_bridges = [bridge MainThread: | | 191 for bridge in bridges MainThread: | | 193 for unconfigured_bridge in unconfigured_bridges: MainThread: | |< XendNode.py:_init_networks MainThread: | 153 self._init_PIFs() MainThread: | |> XendNode.py:_init_PIFs MainThread: | | 200 saved_pifs = self.state_store.load_state('pif') MainThread: | | > XendStateStore.py:load_state MainThread: | | 100 xml_path = self._xml_file(cls) MainThread: | | > XendStateStore.py:_xml_file MainThread: | | 87 return os.path.join(self.base, '%s.xml' % cls) MainThread: | | < XendStateStore.py:_xml_file MainThread: | | 101 if not os.path.exists(xml_path): MainThread: | | 104 dom = minidom.parse(xml_path) MainThread: | | 105 root = dom.documentElement MainThread: | | 106 state = {} MainThread: | | 108 for child in root.childNodes: MainThread: | | 150 dom.unlink() MainThread: | | 151 return state MainThread: | | < XendStateStore.py:load_state MainThread: | | 201 if saved_pifs: MainThread: | | 210 configured_pifs = [XendAPIStore.get( MainThread: | | 213 for pif_uuid in XendPIF.get_all()] MainThread: | | > XendBase.py:get_all MainThread: | | 108 return XendAPIStore.get_all_uuid(cls.getClass()) MainThread: | | > XendPIF.py:getClass MainThread: | | 139 return "PIF" MainThread: | | < XendPIF.py:getClass MainThread: | | > XendAPIStore.py:get_all_uuid MainThread: | | 77 __classes_lock.acquire() MainThread: | | 78 try: MainThread: | | 79 return [uuid MainThread: | | 80 for (uuid, t) in __classes.keys() MainThread: | | 83 __classes_lock.release() MainThread: | | < XendAPIStore.py:get_all_uuid MainThread: | | < XendBase.py:get_all MainThread: | | 214 unconfigured_pifs = [(name, mtu, mac) MainThread: | | 215 for name, mtu, mac in linux_get_phy_ifaces() MainThread: | | > XendPIF.py:linux_get_phy_ifaces MainThread: | | 53 ip_cmd = 'ip -o link show' MainThread: | | 54 rc, output = commands.getstatusoutput(ip_cmd) MainThread: | | 55 ifaces = {} MainThread: | | 56 phy_ifaces = [] MainThread: | | 57 if rc == 0: MainThread: | | 59 for line in output.split('\n'): MainThread: | | 60 has_if = re.search(IP_IFACE_RE, line) MainThread: | | 61 if has_if: MainThread: | | 62 ifaces[has_if.group(1)] = has_if.groups() MainThread: | | 59 for line in output.split('\n'): MainThread: | | 60 has_if = re.search(IP_IFACE_RE, line) MainThread: | | 61 if has_if: MainThread: | | 62 ifaces[has_if.group(1)] = has_if.groups() MainThread: | | 59 for line in output.split('\n'): MainThread: | | 65 for name, mtu, mac in ifaces.values(): MainThread: | | 66 if name.startswith('peth'): MainThread: | | 65 for name, mtu, mac in ifaces.values(): MainThread: | | 66 if name.startswith('peth'): MainThread: | | 65 for name, mtu, mac in ifaces.values(): MainThread: | | 74 return phy_ifaces MainThread: | | < XendPIF.py:linux_get_phy_ifaces MainThread: | | 219 if_to_br = dict([(i,b) MainThread: | | 220 for (b,ifs) in Brctl.get_state().items() MainThread: | | 223 for name, mtu, mac in unconfigured_pifs: MainThread: | |< XendNode.py:_init_PIFs MainThread: | 155 self._init_SRs() MainThread: | |> XendNode.py:_init_SRs MainThread: | | 243 saved_srs = self.state_store.load_state('sr') MainThread: | | > XendStateStore.py:load_state MainThread: | | 100 xml_path = self._xml_file(cls) MainThread: | | > XendStateStore.py:_xml_file MainThread: | | 87 return os.path.join(self.base, '%s.xml' % cls) MainThread: | | < XendStateStore.py:_xml_file MainThread: | | 101 if not os.path.exists(xml_path): MainThread: | | 104 dom = minidom.parse(xml_path) MainThread: | | 105 root = dom.documentElement MainThread: | | 106 state = {} MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 126 if val_type == 'list': MainThread: | | 127 cls_dict[val_name] = [] MainThread: | | 128 for item in val_elem.childNodes: MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 126 if val_type == 'list': MainThread: | | 127 cls_dict[val_name] = [] MainThread: | | 128 for item in val_elem.childNodes: MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 126 if val_type == 'list': MainThread: | | 127 cls_dict[val_name] = [] MainThread: | | 128 for item in val_elem.childNodes: MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 126 if val_type == 'list': MainThread: | | 127 cls_dict[val_name] = [] MainThread: | | 128 for item in val_elem.childNodes: MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 150 dom.unlink() MainThread: | | 151 return state MainThread: | | < XendStateStore.py:load_state MainThread: | | 244 if saved_srs: MainThread: | | 245 for sr_uuid, sr_cfg in saved_srs.items(): MainThread: | | 246 if sr_cfg['type'] == 'qcow_file': MainThread: | | 248 elif sr_cfg['type'] == 'local': MainThread: | | 249 self.srs[sr_uuid] = XendLocalStorageRepo(sr_uuid) MainThread: | | > XendLocalStorageRepo.py:__init__ MainThread: | | 59 XendStorageRepository.__init__(self, sr_uuid, sr_type, MainThread: | | 60 name_label, name_description) MainThread: | | > XendStorageRepository.py:__init__ MainThread: | | 49 self.uuid = uuid MainThread: | | 50 self.type = sr_type MainThread: | | 51 self.name_label = name_label MainThread: | | 52 self.name_description = name_description MainThread: | | 53 self.images = {} MainThread: | | 55 self.physical_size = storage_max MainThread: | | 56 self.physical_utilisation = 0 MainThread: | | 57 self.virtual_allocation = 0 MainThread: | | 58 self.content_type = '' MainThread: | | 60 self.lock = threading.RLock() MainThread: | | < XendStorageRepository.py:__init__ MainThread: | | 62 self.state = XendStateStore(xendoptions().get_xend_state_path() MainThread: | | > XendOptions.py:instance MainThread: | | 553 try: MainThread: | | 554 inst MainThread: | | 560 return inst MainThread: | | < XendOptions.py:instance MainThread: | | > XendOptions.py:get_xend_state_path MainThread: | | 324 return self.get_config_string("xend-state-path", self.xend_state_path_default) MainThread: | | > XendOptions.py:get_config_string MainThread: | | 493 return self.get_config_value(name, val) MainThread: | | > XendOptions.py:get_config_value MainThread: | | 475 return sxp.child_value(self.config, name, val=val) MainThread: | | < XendOptions.py:get_config_value MainThread: | | < XendOptions.py:get_config_string MainThread: | | < XendOptions.py:get_xend_state_path MainThread: | | 63 + '/local_sr') MainThread: | | > XendStateStore.py:__init__ MainThread: | | 75 self.base = base MainThread: | | 76 if not os.path.exists(self.base): MainThread: | | < XendStateStore.py:__init__ MainThread: | | 65 stored_images = self.state.load_state('vdi') MainThread: | | > XendStateStore.py:load_state MainThread: | | 100 xml_path = self._xml_file(cls) MainThread: | | > XendStateStore.py:_xml_file MainThread: | | 87 return os.path.join(self.base, '%s.xml' % cls) MainThread: | | < XendStateStore.py:_xml_file MainThread: | | 101 if not os.path.exists(xml_path): MainThread: | | 102 return {} MainThread: | | < XendStateStore.py:load_state MainThread: | | 66 if stored_images: MainThread: | | < XendLocalStorageRepo.py:__init__ MainThread: | | 245 for sr_uuid, sr_cfg in saved_srs.items(): MainThread: | | 246 if sr_cfg['type'] == 'qcow_file': MainThread: | | 247 self.srs[sr_uuid] = XendQCoWStorageRepo(sr_uuid) MainThread: | | > XendQCoWStorageRepo.py:__init__ MainThread: | | 86 XendStorageRepository.__init__(self, sr_uuid, sr_type, name_label, MainThread: | | 87 name_description, storage_max) MainThread: | | > XendStorageRepository.py:__init__ MainThread: | | 49 self.uuid = uuid MainThread: | | 50 self.type = sr_type MainThread: | | 51 self.name_label = name_label MainThread: | | 52 self.name_description = name_description MainThread: | | 53 self.images = {} MainThread: | | 55 self.physical_size = storage_max MainThread: | | 56 self.physical_utilisation = 0 MainThread: | | 57 self.virtual_allocation = 0 MainThread: | | 58 self.content_type = '' MainThread: | | 60 self.lock = threading.RLock() MainThread: | | < XendStorageRepository.py:__init__ MainThread: | | 88 self.storage_free = 0 MainThread: | | 89 self.location = xendoptions().get_xend_storage_path() MainThread: | | > XendOptions.py:instance MainThread: | | 553 try: MainThread: | | 554 inst MainThread: | | 560 return inst MainThread: | | < XendOptions.py:instance MainThread: | | > XendOptions.py:get_xend_storage_path MainThread: | | 329 return self.get_config_string("xend-storage-path", self.xend_storage_path_default) MainThread: | | > XendOptions.py:get_config_string MainThread: | | 493 return self.get_config_value(name, val) MainThread: | | > XendOptions.py:get_config_value MainThread: | | 475 return sxp.child_value(self.config, name, val=val) MainThread: | | < XendOptions.py:get_config_value MainThread: | | < XendOptions.py:get_config_string MainThread: | | < XendOptions.py:get_xend_storage_path MainThread: | | 90 self._refresh() MainThread: | | > XendQCoWStorageRepo.py:_refresh MainThread: | | 114 self.lock.acquire() MainThread: | | 115 try: MainThread: | | 116 mkdir.parents(self.location, stat.S_IRWXU) MainThread: | | 119 virtual_alloc = 0 MainThread: | | 120 physical_used = 0 MainThread: | | 121 seen_images = [] MainThread: | | 122 for filename in os.listdir(self.location): MainThread: | | 154 for image_uuid in self.images.keys(): MainThread: | | 162 self.virtual_allocation = virtual_alloc MainThread: | | 163 self.physical_utilisation = physical_used MainThread: | | 166 if self.physical_size == XEND_STORAGE_NO_MAXIMUM: MainThread: | | 167 self.storage_free = self._get_free_space() MainThread: | | > XendQCoWStorageRepo.py:_get_free_space MainThread: | | 181 stfs = os.statvfs(self.location) MainThread: | | 182 return stfs.f_bavail * stfs.f_frsize MainThread: | | < XendQCoWStorageRepo.py:_get_free_space MainThread: | | 172 self.lock.release() MainThread: | | < XendQCoWStorageRepo.py:_refresh MainThread: | | < XendQCoWStorageRepo.py:__init__ MainThread: | | 245 for sr_uuid, sr_cfg in saved_srs.items(): MainThread: | | 252 if not self.get_sr_by_type('local'): MainThread: | | > XendNode.py:get_sr_by_type MainThread: | | 662 return [sr.uuid for sr in self.srs.values() if sr.type == sr_type] MainThread: | | 662 return [sr.uuid for sr in self.srs.values() if sr.type == sr_type] MainThread: | | 662 return [sr.uuid for sr in self.srs.values() if sr.type == sr_type] MainThread: | | < XendNode.py:get_sr_by_type MainThread: | | 256 if not self.get_sr_by_type('qcow_file'): MainThread: | | > XendNode.py:get_sr_by_type MainThread: | | 662 return [sr.uuid for sr in self.srs.values() if sr.type == sr_type] MainThread: | | 662 return [sr.uuid for sr in self.srs.values() if sr.type == sr_type] MainThread: | | 662 return [sr.uuid for sr in self.srs.values() if sr.type == sr_type] MainThread: | | < XendNode.py:get_sr_by_type MainThread: | |< XendNode.py:_init_SRs MainThread: | 156 self._init_PBDs() MainThread: | |> XendNode.py:_init_PBDs MainThread: | | 261 saved_pbds = self.state_store.load_state('pbd') MainThread: | | > XendStateStore.py:load_state MainThread: | | 100 xml_path = self._xml_file(cls) MainThread: | | > XendStateStore.py:_xml_file MainThread: | | 87 return os.path.join(self.base, '%s.xml' % cls) MainThread: | | < XendStateStore.py:_xml_file MainThread: | | 101 if not os.path.exists(xml_path): MainThread: | | 104 dom = minidom.parse(xml_path) MainThread: | | 105 root = dom.documentElement MainThread: | | 106 state = {} MainThread: | | 108 for child in root.childNodes: MainThread: | | 150 dom.unlink() MainThread: | | 151 return state MainThread: | | < XendStateStore.py:load_state MainThread: | | 262 if saved_pbds: MainThread: | |< XendNode.py:_init_PBDs MainThread: | 158 self._init_PPCIs() MainThread: | |> XendNode.py:_init_PPCIs MainThread: | | 270 saved_ppcis = self.state_store.load_state('ppci') MainThread: | | > XendStateStore.py:load_state MainThread: | | 100 xml_path = self._xml_file(cls) MainThread: | | > XendStateStore.py:_xml_file MainThread: | | 87 return os.path.join(self.base, '%s.xml' % cls) MainThread: | | < XendStateStore.py:_xml_file MainThread: | | 101 if not os.path.exists(xml_path): MainThread: | | 104 dom = minidom.parse(xml_path) MainThread: | | 105 root = dom.documentElement MainThread: | | 106 state = {} MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 112 uuid = child.getAttribute('uuid').encode('utf8') MainThread: | | 113 cls_dict = {} MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 142 elif val_type == 'float': MainThread: | | 144 elif val_type == 'int': MainThread: | | 145 cls_dict[val_name] = int(val_text) MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 118 val_name = val_elem.tagName MainThread: | | 119 val_type = val_elem.getAttribute('type').encode('utf8') MainThread: | | 120 val_uuid = val_elem.getAttribute('uuid').encode('utf8') MainThread: | | 121 val_elem.normalize() MainThread: | | 122 val_text = '' MainThread: | | 123 if val_elem.firstChild: MainThread: | | 124 val_text = val_elem.firstChild.nodeValue.strip() MainThread: | | 126 if val_type == 'list': MainThread: | | 132 elif val_type == 'dict': MainThread: | | 140 elif val_type == 'string': MainThread: | | 141 cls_dict[val_name] = val_text.encode('utf8') MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 115 if val_elem.nodeType != Node.ELEMENT_NODE: MainThread: | | 116 continue # skip non element nodes MainThread: | | 114 for val_elem in child.childNodes: MainThread: | | 148 state[uuid] = cls_dict MainThread: | | 108 for child in root.childNodes: MainThread: | | 109 if child.nodeType != Node.ELEMENT_NODE: MainThread: | | 110 continue # skip non element nodes MainThread: | | 108 for child in root.childNodes: MainThread: | | 150 dom.unlink() MainThread: | | 151 return state MainThread: | | < XendStateStore.py:load_state MainThread: | | 271 saved_ppci_table = {} MainThread: | | 272 if saved_ppcis: MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 274 try: MainThread: | | 275 saved_ppci_table[ppci_record['name']] = ppci_uuid MainThread: | | 273 for ppci_uuid, ppci_record in saved_ppcis.items(): MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | | 280 ppci_record = { MainThread: | | 281 'domain': pci_dev.domain, MainThread: | | 282 'bus': pci_dev.bus, MainThread: | | 283 'slot': pci_dev.slot, MainThread: | | 284 'func': pci_dev.func, MainThread: | | 285 'vendor_id': pci_dev.vendor, MainThread: | | 286 'vendor_name': pci_dev.vendorname, MainThread: | | 287 'device_id': pci_dev.device, MainThread: | | 288 'device_name': pci_dev.devicename, MainThread: | | 289 'revision_id': pci_dev.revision, MainThread: | | 290 'class_code': pci_dev.classcode, MainThread: | | 291 'class_name': pci_dev.classname, MainThread: | | 292 'subsystem_vendor_id': pci_dev.subvendor, MainThread: | | 293 'subsystem_vendor_name': pci_dev.subvendorname, MainThread: | | 294 'subsystem_id': pci_dev.subdevice, MainThread: | | 295 'subsystem_name': pci_dev.subdevicename, MainThread: | | 296 'driver': pci_dev.driver MainThread: | | 299 ppci_uuid = saved_ppci_table.get(pci_dev.name, uuid.createString()) MainThread: | | > uuid.py:createString MainThread: | | 69 return toString(create()) MainThread: | | > uuid.py:create MainThread: | | 66 return uuidFactory() MainThread: | | > uuid.py:getUuidRandom MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | 50 return [ random.randint(0, 255) for _ in range(0, 16) ] MainThread: | | < uuid.py:getUuidRandom MainThread: | | < uuid.py:create MainThread: | | > uuid.py:toString MainThread: | | 58 return "-".join(["%02x" * 4, "%02x" * 2, "%02x" * 2, "%02x" * 2, MainThread: | | 59 "%02x" * 6]) % tuple(u) MainThread: | | < uuid.py:toString MainThread: | | < uuid.py:createString MainThread: | | 300 XendPPCI(ppci_uuid, ppci_record) MainThread: | | > XendPPCI.py:__init__ MainThread: | | 87 self.domain = record['domain'] MainThread: | | 88 self.bus = record['bus'] MainThread: | | 89 self.slot = record['slot'] MainThread: | | 90 self.func = record['func'] MainThread: | | 91 self.vendor_id = record['vendor_id'] MainThread: | | 92 self.vendor_name = record['vendor_name'] MainThread: | | 93 self.device_id = record['device_id'] MainThread: | | 94 self.device_name = record['device_name'] MainThread: | | 95 self.revision_id = record['revision_id'] MainThread: | | 96 self.class_code = record['class_code'] MainThread: | | 97 self.class_name = record['class_name'] MainThread: | | 98 self.subsystem_vendor_id = record['subsystem_vendor_id'] MainThread: | | 99 self.subsystem_vendor_name = record['subsystem_vendor_name'] MainThread: | | 100 self.subsystem_id = record['subsystem_id'] MainThread: | | 101 self.subsystem_name = record['subsystem_name'] MainThread: | | 102 self.driver = record['driver'] MainThread: | | 103 XendBase.__init__(self, uuid, record) MainThread: | | > XendBase.py:__init__ MainThread: | | 54 self.__uuid = uuid MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRO MainThread: | | 32 attrRO = ['host', MainThread: | | 33 'domain', MainThread: | | 34 'bus', MainThread: | | 35 'slot', MainThread: | | 36 'func', MainThread: | | 37 'name', MainThread: | | 38 'vendor_id', MainThread: | | 39 'vendor_name', MainThread: | | 40 'device_id', MainThread: | | 41 'device_name', MainThread: | | 42 'revision_id', MainThread: | | 43 'class_code', MainThread: | | 44 'class_name', MainThread: | | 45 'subsystem_vendor_id', MainThread: | | 46 'subsystem_vendor_name', MainThread: | | 47 'subsystem_id', MainThread: | | 48 'subsystem_name', MainThread: | | 49 'driver'] MainThread: | | 50 return XendBase.getAttrRO() + attrRO MainThread: | | > XendBase.py:getAttrRO MainThread: | | 32 return ['uuid'] MainThread: | | < XendBase.py:getAttrRO MainThread: | | < XendPPCI.py:getAttrRO MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 58 if not hasattr(self, "get_%s" % attr_ro): MainThread: | | 57 for attr_ro in self.getAttrRO() + self.getAttrRW(): MainThread: | | 62 for attr_rw in self.getAttrRW(): MainThread: | | > XendPPCI.py:getAttrRW MainThread: | | 53 attrRW = [] MainThread: | | 54 return XendBase.getAttrRW() + attrRW MainThread: | | > XendBase.py:getAttrRW MainThread: | | 35 return [] MainThread: | | < XendBase.py:getAttrRW MainThread: | | < XendPPCI.py:getAttrRW MainThread: | | 67 for method in self.getMethods(): MainThread: | | > XendPPCI.py:getMethods MainThread: | | 61 methods = [] MainThread: | | 62 return XendBase.getMethods() + methods MainThread: | | > XendBase.py:getMethods MainThread: | | 41 return ["get_record"] MainThread: | | < XendBase.py:getMethods MainThread: | | < XendPPCI.py:getMethods MainThread: | | 68 if not hasattr(self, method): MainThread: | | 67 for method in self.getMethods(): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | > XendPPCI.py:getFuncs MainThread: | | 65 funcs = [] MainThread: | | 66 return XendBase.getFuncs() + funcs MainThread: | | > XendBase.py:getFuncs MainThread: | | 44 return ["get_all", "get_by_uuid", "get_all_records"] MainThread: | | < XendBase.py:getFuncs MainThread: | | < XendPPCI.py:getFuncs MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 73 if not hasattr(self.__class__, func): MainThread: | | 72 for func in self.getFuncs(): MainThread: | | 79 if not isinstance(record, dict): MainThread: | | 83 for attr_inst in self.getAttrInst(): MainThread: | | > XendPPCI.py:getAttrInst MainThread: | | 57 attrInst = [] MainThread: | | 58 return XendBase.getAttrInst() + attrInst MainThread: | | > XendBase.py:getAttrInst MainThread: | | 38 return [] MainThread: | | < XendBase.py:getAttrInst MainThread: | | < XendPPCI.py:getAttrInst MainThread: | | 90 XendAPIStore.register(uuid, self.getClass(), self) MainThread: | | > XendPPCI.py:getClass MainThread: | | 29 return "PPCI" MainThread: | | < XendPPCI.py:getClass MainThread: | | > XendAPIStore.py:register MainThread: | | 34 __classes_lock.acquire() MainThread: | | 35 try: MainThread: | | 36 __classes[(uuid, type)] = inst MainThread: | | 37 return inst MainThread: | | 39 __classes_lock.release() MainThread: | | < XendAPIStore.py:register MainThread: | | < XendBase.py:__init__ MainThread: | | < XendPPCI.py:__init__ MainThread: | | 279 for pci_dev in PciUtil.get_all_pci_devices(): MainThread: | |< XendNode.py:_init_PPCIs MainThread: | 160 self._init_PSCSIs() MainThread: | |> XendNode.py:_init_PSCSIs MainThread: | | 304 saved_pscsis = self.state_store.load_state('pscsi') MainThread: | | > XendStateStore.py:load_state MainThread: | | 100 xml_path = self._xml_file(cls) MainThread: | | > XendStateStore.py:_xml_file MainThread: | | 87 return os.path.join(self.base, '%s.xml' % cls) MainThread: | | < XendStateStore.py:_xml_file MainThread: | | 101 if not os.path.exists(xml_path): MainThread: | | 104 dom = minidom.parse(xml_path) MainThread: | | 105 root = dom.documentElement MainThread: | | 106 state = {} MainThread: | | 108 for child in root.childNodes: MainThread: | | 150 dom.unlink() MainThread: | | 151 return state MainThread: | | < XendStateStore.py:load_state MainThread: | | 305 saved_pscsi_table = {} MainThread: | | 306 if saved_pscsis: MainThread: | | 313 saved_pscsi_HBAs = self.state_store.load_state('pscsi_HBA') MainThread: | | > XendStateStore.py:load_state MainThread: | | 100 xml_path = self._xml_file(cls) MainThread: | | > XendStateStore.py:_xml_file MainThread: | | 87 return os.path.join(self.base, '%s.xml' % cls) MainThread: | | < XendStateStore.py:_xml_file MainThread: | | 101 if not os.path.exists(xml_path): MainThread: | | 104 dom = minidom.parse(xml_path) MainThread: | | 105 root = dom.documentElement MainThread: | | 106 state = {} MainThread: | | 108 for child in root.childNodes: MainThread: | | 150 dom.unlink() MainThread: | | 151 return state MainThread: | | < XendStateStore.py:load_state MainThread: | | 314 saved_pscsi_HBA_table = {} MainThread: | | 315 if saved_pscsi_HBAs: MainThread: | | 323 pscsi_table = {} MainThread: | | 324 pscsi_HBA_table = {} MainThread: | | 326 for pscsi_record in vscsi_util.get_all_scsi_devices(): MainThread: | | 327 scsi_id = pscsi_record['scsi_id'] MainThread: | | 328 if scsi_id: MainThread: | | 326 for pscsi_record in vscsi_util.get_all_scsi_devices(): MainThread: | | 327 scsi_id = pscsi_record['scsi_id'] MainThread: | | 328 if scsi_id: MainThread: | | 326 for pscsi_record in vscsi_util.get_all_scsi_devices(): MainThread: | | 327 scsi_id = pscsi_record['scsi_id'] MainThread: | | 328 if scsi_id: MainThread: | | 326 for pscsi_record in vscsi_util.get_all_scsi_devices(): MainThread: | | 327 scsi_id = pscsi_record['scsi_id'] MainThread: | | 328 if scsi_id: MainThread: | | 326 for pscsi_record in vscsi_util.get_all_scsi_devices(): MainThread: | | 327 scsi_id = pscsi_record['scsi_id'] MainThread: | | 328 if scsi_id: MainThread: | | 326 for pscsi_record in vscsi_util.get_all_scsi_devices(): MainThread: | | 327 scsi_id = pscsi_record['scsi_id'] MainThread: | | 328 if scsi_id: MainThread: | | 326 for pscsi_record in vscsi_util.get_all_scsi_devices(): MainThread: | | 327 scsi_id = pscsi_record['scsi_id'] MainThread: | | 328 if scsi_id: MainThread: | | 326 for pscsi_record in vscsi_util.get_all_scsi_devices(): MainThread: | | 327 scsi_id = pscsi_record['scsi_id'] MainThread: | | 328 if scsi_id: MainThread: | | 326 for pscsi_record in vscsi_util.get_all_scsi_devices(): MainThread: | | 327 scsi_id = pscsi_record['scsi_id'] MainThread: | | 328 if scsi_id: MainThread: | | 326 for pscsi_record in vscsi_util.get_all_scsi_devices(): MainThread: | | 358 for pscsi_uuid, pscsi_record in pscsi_table.items(): MainThread: | | 361 for physical_host, pscsi_HBA_uuid in pscsi_HBA_table.items(): MainThread: | |< XendNode.py:_init_PSCSIs MainThread: | < XendNode.py:__init__ MainThread: | 1141 inst.save() MainThread: | > XendNode.py:save MainThread: | 571 host_record = {self.uuid: {'name_label':self.name, MainThread: | 572 'name_description':self.desc, MainThread: | 573 'metrics_uuid': self.host_metrics_uuid, MainThread: | 574 'other_config': self.other_config}} MainThread: | 575 self.state_store.save_state('host',host_record) MainThread: | |> XendStateStore.py:save_state MainThread: | | 167 xml_path = self._xml_file(cls) MainThread: | | > XendStateStore.py:_xml_file MainThread: | | 87 return os.path.join(self.base, '%s.xml' % cls) MainThread: | | < XendStateStore.py:_xml_file MainThread: | | 169 doc = minidom.getDOMImplementation().createDocument(None, MainThread: | | 170 cls + 's', MainThread: | | 171 None) MainThread: | | 172 root = doc.documentElement MainThread: | | 175 for uuid, info in state.items(): MainThread: | | 176 node = doc.createElement(cls) MainThread: | | 177 root.appendChild(node) MainThread: | | 178 node.setAttribute('uuid', uuid) MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 188 elif type(val) == int: MainThread: | | 191 elif type(val) == float: MainThread: | | 194 elif type(val) == bool: MainThread: | | 198 if store_type is not None: MainThread: | | 208 if type(val) == dict: MainThread: | | 209 val_node = doc.createElement(key) MainThread: | | 210 val_node.setAttribute('type', 'dict') MainThread: | | 211 for val_item in val.keys(): MainThread: | | 212 tmp = doc.createElement("item") MainThread: | | 213 if key in ['other_config', 'device_config']: MainThread: | | 214 tmp.setAttribute('key', str(val_item)) MainThread: | | 215 tmp.setAttribute('value', str(val[val_item])) MainThread: | | 218 val_node.appendChild(tmp) MainThread: | | 211 for val_item in val.keys(): MainThread: | | 212 tmp = doc.createElement("item") MainThread: | | 213 if key in ['other_config', 'device_config']: MainThread: | | 214 tmp.setAttribute('key', str(val_item)) MainThread: | | 215 tmp.setAttribute('value', str(val[val_item])) MainThread: | | 218 val_node.appendChild(tmp) MainThread: | | 211 for val_item in val.keys(): MainThread: | | 212 tmp = doc.createElement("item") MainThread: | | 213 if key in ['other_config', 'device_config']: MainThread: | | 214 tmp.setAttribute('key', str(val_item)) MainThread: | | 215 tmp.setAttribute('value', str(val[val_item])) MainThread: | | 218 val_node.appendChild(tmp) MainThread: | | 211 for val_item in val.keys(): MainThread: | | 219 node.appendChild(val_node) MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 175 for uuid, info in state.items(): MainThread: | | 229 open(xml_path, 'w').write(doc.toprettyxml()) MainThread: | | 230 doc.unlink() MainThread: | |< XendStateStore.py:save_state MainThread: | 576 self.state_store.save_state('cpu', self.cpus) MainThread: | |> XendStateStore.py:save_state MainThread: | | 167 xml_path = self._xml_file(cls) MainThread: | | > XendStateStore.py:_xml_file MainThread: | | 87 return os.path.join(self.base, '%s.xml' % cls) MainThread: | | < XendStateStore.py:_xml_file MainThread: | | 169 doc = minidom.getDOMImplementation().createDocument(None, MainThread: | | 170 cls + 's', MainThread: | | 171 None) MainThread: | | 172 root = doc.documentElement MainThread: | | 175 for uuid, info in state.items(): MainThread: | | 176 node = doc.createElement(cls) MainThread: | | 177 root.appendChild(node) MainThread: | | 178 node.setAttribute('uuid', uuid) MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 188 elif type(val) == int: MainThread: | | 189 store_val = str(val) MainThread: | | 190 store_type = 'int' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 188 elif type(val) == int: MainThread: | | 189 store_val = str(val) MainThread: | | 190 store_type = 'int' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 175 for uuid, info in state.items(): MainThread: | | 176 node = doc.createElement(cls) MainThread: | | 177 root.appendChild(node) MainThread: | | 178 node.setAttribute('uuid', uuid) MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 188 elif type(val) == int: MainThread: | | 189 store_val = str(val) MainThread: | | 190 store_type = 'int' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 188 elif type(val) == int: MainThread: | | 189 store_val = str(val) MainThread: | | 190 store_type = 'int' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 175 for uuid, info in state.items(): MainThread: | | 176 node = doc.createElement(cls) MainThread: | | 177 root.appendChild(node) MainThread: | | 178 node.setAttribute('uuid', uuid) MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 188 elif type(val) == int: MainThread: | | 189 store_val = str(val) MainThread: | | 190 store_type = 'int' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 188 elif type(val) == int: MainThread: | | 189 store_val = str(val) MainThread: | | 190 store_type = 'int' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 175 for uuid, info in state.items(): MainThread: | | 176 node = doc.createElement(cls) MainThread: | | 177 root.appendChild(node) MainThread: | | 178 node.setAttribute('uuid', uuid) MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 188 elif type(val) == int: MainThread: | | 189 store_val = str(val) MainThread: | | 190 store_type = 'int' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 188 elif type(val) == int: MainThread: | | 189 store_val = str(val) MainThread: | | 190 store_type = 'int' MainThread: | | 198 if store_type is not None: MainThread: | | 199 val_node = doc.createElement(key) MainThread: | | 200 val_node.setAttribute('type', store_type) MainThread: | | 201 node.appendChild(val_node) MainThread: | | 203 val_text = doc.createTextNode(store_val) MainThread: | | 204 val_node.appendChild(val_text) MainThread: | | 205 continue MainThread: | | 180 for key, val in info.items(): MainThread: | | 181 store_val = val MainThread: | | 182 store_type = None MainThread: | | 185 if type(val) in (str, unicode): MainThread: | | 186 store_val = val MainThread: | | 187 store_type = 'string