fixes transcoding issue for nodes - local nodes were transcoded to None
[plcapi.git] / PLC / Methods / BlacklistKey.py
index 17a0418..1c03d6e 100644 (file)
@@ -35,7 +35,12 @@ class BlacklistKey(Method):
             raise PLCInvalidArgument, "No such key"
         key = keys[0]
 
+        # N.B.: Can blacklist any key, even foreign ones
+
         key.blacklist()
+       
+       # Logging variables
        self.object_ids = [key['key_id']]
+       self.message = 'Key %d blacklisted' % key['key_id']
 
         return 1