X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FDeletePCUType.py;h=6d545cb892e9ebd634c346a13ce2ae3f984731db;hb=abc6f792c80eb98ab9032a69c526d48efe8075cc;hp=f27e1179f58561654d8bc4ab6cb54d528f0fdc2f;hpb=f5cd72e35593c96b9996ab4e49674cccc7525c48;p=plcapi.git diff --git a/PLC/Methods/DeletePCUType.py b/PLC/Methods/DeletePCUType.py index f27e117..6d545cb 100644 --- a/PLC/Methods/DeletePCUType.py +++ b/PLC/Methods/DeletePCUType.py @@ -1,5 +1,3 @@ -# $Id$ -# $URL$ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed @@ -10,7 +8,7 @@ class DeletePCUType(Method): """ Deletes a PCU type. - Returns 1 if successful, faults otherwise. + Returns 1 if successful, faults otherwise. """ roles = ['admin'] @@ -21,7 +19,7 @@ class DeletePCUType(Method): ] returns = Parameter(int, '1 if successful') - + def call(self, auth, pcu_type_id): pcu_types = PCUTypes(self.api, [pcu_type_id]) @@ -30,6 +28,6 @@ class DeletePCUType(Method): pcu_type = pcu_types[0] pcu_type.delete() - self.event_objects = {'PCUType': [pcu_type['pcu_type_id']]} + self.event_objects = {'PCUType': [pcu_type['pcu_type_id']]} return 1