git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- Change .py files to use 4-space indents and no hard tab characters.
[plcapi.git]
/
PLC
/
Methods
/
DeletePCUType.py
diff --git
a/PLC/Methods/DeletePCUType.py
b/PLC/Methods/DeletePCUType.py
index
f27e117
..
166c628
100644
(file)
--- a/
PLC/Methods/DeletePCUType.py
+++ b/
PLC/Methods/DeletePCUType.py
@@
-10,7
+10,7
@@
class DeletePCUType(Method):
"""
Deletes a PCU type.
"""
Deletes a PCU type.
- Returns 1 if successful, faults otherwise.
+ Returns 1 if successful, faults otherwise.
"""
roles = ['admin']
"""
roles = ['admin']
@@
-21,7
+21,7
@@
class DeletePCUType(Method):
]
returns = Parameter(int, '1 if successful')
]
returns = Parameter(int, '1 if successful')
-
+
def call(self, auth, pcu_type_id):
pcu_types = PCUTypes(self.api, [pcu_type_id])
def call(self, auth, pcu_type_id):
pcu_types = PCUTypes(self.api, [pcu_type_id])
@@
-30,6
+30,6
@@
class DeletePCUType(Method):
pcu_type = pcu_types[0]
pcu_type.delete()
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
return 1