returns = Parameter(int, '1 if successful')
+ event_type = 'Delete'
+ object_type = 'PCU'
+
def call(self, auth, pcu_id):
# Get associated PCU details
- pcus = PCUs(self.api, [pcu_id]).values()
+ pcus = PCUs(self.api, [pcu_id])
if not pcus:
raise PLCInvalidArgument, "No such PCU"
pcu = pcus[0]
raise PLCPermissionDenied, "Not allowed to update that PCU"
pcu.delete()
+ self.object_ids = [pcu['pcu_id']]
return 1