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
====
[plcapi.git]
/
PLC
/
Methods
/
DeletePCUProtocolType.py
diff --git
a/PLC/Methods/DeletePCUProtocolType.py
b/PLC/Methods/DeletePCUProtocolType.py
index
ab66520
..
1ff162b
100644
(file)
--- a/
PLC/Methods/DeletePCUProtocolType.py
+++ b/
PLC/Methods/DeletePCUProtocolType.py
@@
-8,7
+8,7
@@
class DeletePCUProtocolType(Method):
"""
Deletes a PCU protocol type.
"""
Deletes a PCU protocol type.
- Returns 1 if successful, faults otherwise.
+ Returns 1 if successful, faults otherwise.
"""
roles = ['admin']
"""
roles = ['admin']
@@
-19,7
+19,7
@@
class DeletePCUProtocolType(Method):
]
returns = Parameter(int, '1 if successful')
]
returns = Parameter(int, '1 if successful')
-
+
def call(self, auth, protocol_type_id):
protocol_types = PCUProtocolTypes(self.api, [protocol_type_id])
def call(self, auth, protocol_type_id):
protocol_types = PCUProtocolTypes(self.api, [protocol_type_id])
@@
-28,6
+28,6
@@
class DeletePCUProtocolType(Method):
protocol_type = protocol_types[0]
protocol_type.delete()
protocol_type = protocol_types[0]
protocol_type.delete()
- self.event_objects = {'PCUProtocolType': [protocol_type['pcu_protocol_type_id']]}
+
self.event_objects = {'PCUProtocolType': [protocol_type['pcu_protocol_type_id']]}
return 1
return 1