equal
deleted
inserted
replaced
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( |