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
syncing both PLCAPI branches
[plcapi.git]
/
PLC
/
Methods
/
BlacklistKey.py
diff --git
a/PLC/Methods/BlacklistKey.py
b/PLC/Methods/BlacklistKey.py
index
1c03d6e
..
7953e7a
100644
(file)
--- a/
PLC/Methods/BlacklistKey.py
+++ b/
PLC/Methods/BlacklistKey.py
@@
-24,10
+24,6
@@
class BlacklistKey(Method):
returns = Parameter(int, '1 if successful')
returns = Parameter(int, '1 if successful')
- event_type = 'Update'
- object_type = 'Key'
- object_ids = []
-
def call(self, auth, key_id):
# Get associated key details
keys = Keys(self.api, [key_id])
def call(self, auth, key_id):
# Get associated key details
keys = Keys(self.api, [key_id])
@@
-40,7
+36,7
@@
class BlacklistKey(Method):
key.blacklist()
# Logging variables
key.blacklist()
# Logging variables
- self.
object_ids = [key['key_id']]
+ self.
event_objects = {'Key': [key['key_id']]}
self.message = 'Key %d blacklisted' % key['key_id']
return 1
self.message = 'Key %d blacklisted' % key['key_id']
return 1