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
permission checking on node tags factorized in Node.caller_may_write_tag
[plcapi.git]
/
PLC
/
Methods
/
DeletePCU.py
diff --git
a/PLC/Methods/DeletePCU.py
b/PLC/Methods/DeletePCU.py
index
0d7a09a
..
caff26b
100644
(file)
--- a/
PLC/Methods/DeletePCU.py
+++ b/
PLC/Methods/DeletePCU.py
@@
-1,3
+1,5
@@
+# $Id$
+# $URL$
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
@@
-35,9
+37,9
@@
class DeletePCU(Method):
raise PLCPermissionDenied, "Not allowed to update that PCU"
pcu.delete()
raise PLCPermissionDenied, "Not allowed to update that PCU"
pcu.delete()
-
- # Logging variables
- self.object_ids = [pcu['pcu_id']]
- self.message = 'PCU %d deleted' % pcu['pcu_id']
+
+
# Logging variables
+ self.event_objects = {'PCU': [pcu['pcu_id']]}
+
self.message = 'PCU %d deleted' % pcu['pcu_id']
return 1
return 1