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 (and fix) the way we retrieve the subject object
[plcapi.git]
/
PLC
/
Methods
/
DeleteMessage.py
diff --git
a/PLC/Methods/DeleteMessage.py
b/PLC/Methods/DeleteMessage.py
index
d4a732e
..
857ce91
100644
(file)
--- a/
PLC/Methods/DeleteMessage.py
+++ b/
PLC/Methods/DeleteMessage.py
@@
-1,4
+1,5
@@
# $Id$
# $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
@@
-20,7
+21,7
@@
class DeleteMessage(Method):
]
returns = Parameter(int, '1 if successful')
]
returns = Parameter(int, '1 if successful')
-
+
def call(self, auth, message_id):
# Get message information
def call(self, auth, message_id):
# Get message information
@@
-30,6
+31,6
@@
class DeleteMessage(Method):
message = messages[0]
message.delete()
message = messages[0]
message.delete()
- self.event_objects = {'Message': [message['message_id']]}
+
self.event_objects = {'Message': [message['message_id']]}
return 1
return 1