Merge commit 'origin/master'
[plcapi.git] / PLC / Methods / DeletePCUType.py
index 89fe4ee..166c628 100644 (file)
@@ -1,4 +1,5 @@
-# $Id#
+# $Id$
+# $URL$
 from PLC.Faults import *
 from PLC.Method import Method
 from PLC.Parameter import Parameter, Mixed
@@ -9,7 +10,7 @@ class DeletePCUType(Method):
     """
     Deletes a PCU type.
 
-    Returns 1 if successful, faults otherwise. 
+    Returns 1 if successful, faults otherwise.
     """
 
     roles = ['admin']
@@ -20,7 +21,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])
@@ -29,6 +30,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