etherlab/etherlab.py
changeset 2378 7aa47c09f8f5
parent 2377 88a9d64560d3
child 2379 015b724c30a5
equal deleted inserted replaced
2377:88a9d64560d3 2378:7aa47c09f8f5
   239                              "devices": []})
   239                              "devices": []})
   240 
   240 
   241                     for device in self.devices_xpath(self.modules_infos):
   241                     for device in self.devices_xpath(self.modules_infos):
   242                         device_group = device.getGroupType()
   242                         device_group = device.getGroupType()
   243                         if device_group not in vendor_category["groups"]:
   243                         if device_group not in vendor_category["groups"]:
   244                             raise ValueError, "Not such group \"%\"" % device_group
   244                             raise ValueError("Not such group \"%\"" % device_group)
   245                         vendor_category["groups"][device_group]["devices"].append(
   245                         vendor_category["groups"][device_group]["devices"].append(
   246                             (device.getType().getcontent(), device))
   246                             (device.getType().getcontent(), device))
   247 
   247 
   248                 else:
   248                 else:
   249 
   249