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
review 'print' statements - make sure to use PLC.Debug.log that gets redirected to...
[plcapi.git]
/
PLC
/
Methods
/
DeleteRole.py
diff --git
a/PLC/Methods/DeleteRole.py
b/PLC/Methods/DeleteRole.py
index
23e9253
..
aac0913
100644
(file)
--- a/
PLC/Methods/DeleteRole.py
+++ b/
PLC/Methods/DeleteRole.py
@@
-1,4
+1,3
@@
-# $Id#
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
from PLC.Faults import *
from PLC.Method import Method
from PLC.Parameter import Parameter, Mixed
@@
-26,7
+25,7
@@
class DeleteRole(Method):
returns = Parameter(int, '1 if successful')
returns = Parameter(int, '1 if successful')
-
+
def call(self, auth, role_id_or_name):
roles = Roles(self.api, [role_id_or_name])
if not roles:
def call(self, auth, role_id_or_name):
roles = Roles(self.api, [role_id_or_name])
if not roles:
@@
-34,6
+33,6
@@
class DeleteRole(Method):
role = roles[0]
role.delete()
role = roles[0]
role.delete()
- self.event_objects = {'Role': [role['role_id']]}
+
self.event_objects = {'Role': [role['role_id']]}
return 1
return 1