return self.connector_type.can_connect(connector_type_id)
def destroy(self):
- for connector in self._connections:
+ for connector in self.connections:
self.disconnect(connector)
self._box = self._connectors = None
del route
def destroy(self):
- super(RoutingCapableBox, self).destroy()
+ super(RoutingTableBox, self).destroy()
for route in self.routes:
self.delete_route(route)
self._route = None
box.destroy()
def destroy(self):
- for guid, box in self._boxes.iteitems():
- del self._boxes[guid]
+ for guid, box in self._boxes.iteritems():
box.destroy()
self._boxes = None
guid = testbed_description.guid
del self._testbed_descriptions[guid]
+ def destroy(self):
+ for testbed_description in self.testbed_descriptions:
+ testbed_description.destroy()
graphical_info_tag = graphical_info_tag_list[0]
if graphical_info_tag.nodeType == tag.ELEMENT_NODE:
- x = int(graphical_info_tag.getAttribute("x"))
- y = int(graphical_info_tag.getAttribute("y"))
- width = int(graphical_info_tag.getAttribute("width"))
- height = int(graphical_info_tag.getAttribute("height"))
+ x = float(graphical_info_tag.getAttribute("x"))
+ y = float(graphical_info_tag.getAttribute("y"))
+ width = float(graphical_info_tag.getAttribute("width"))
+ height = float(graphical_info_tag.getAttribute("height"))
label = str(graphical_info_tag.getAttribute("label"))
data.add_graphical_info_data(guid, x, y, width, height, label)