etherlab/etherlab.py
changeset 2359 e945fcb54cd4
parent 2357 7c67286cddbe
child 2360 2a3d022a7dac
equal deleted inserted replaced
2358:8e5a9830867e 2359:e945fcb54cd4
   224                             {"name": ExtractName(group.getName(), group_type),
   224                             {"name": ExtractName(group.getName(), group_type),
   225                              "parent": group.getParentGroup(),
   225                              "parent": group.getParentGroup(),
   226                              "order": group.getSortOrder(),
   226                              "order": group.getSortOrder(),
   227                              # "value": group.getcontent()["value"],
   227                              # "value": group.getcontent()["value"],
   228                              "devices": []})
   228                              "devices": []})
   229                              
   229 
   230                     for device in self.devices_xpath(self.modules_infos):
   230                     for device in self.devices_xpath(self.modules_infos):
   231                         device_group = device.getGroupType()
   231                         device_group = device.getGroupType()
   232                         if not vendor_category["groups"].has_key(device_group):
   232                         if not vendor_category["groups"].has_key(device_group):
   233                             raise ValueError, "Not such group \"%\"" % device_group
   233                             raise ValueError, "Not such group \"%\"" % device_group
   234                         vendor_category["groups"][device_group]["devices"].append(
   234                         vendor_category["groups"][device_group]["devices"].append(