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
- call GetSlices
[plcapi.git]
/
PLC
/
Method.py
diff --git
a/PLC/Method.py
b/PLC/Method.py
index
2b062d1
..
e2250ea
100644
(file)
--- a/
PLC/Method.py
+++ b/
PLC/Method.py
@@
-4,7
+4,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: Method.py,v 1.
18 2006/11/08 22:11:26 mlhuang
Exp $
+# $Id: Method.py,v 1.
20 2006/12/20 14:08:40 tmack
Exp $
#
import xmlrpclib
#
import xmlrpclib
@@
-92,7
+92,7
@@
class Method:
result = self.call(*args, **kwds)
runtime = time.time() - start
result = self.call(*args, **kwds)
runtime = time.time() - start
- if self.api.config.PLC_API_DEBUG:
+ if self.api.config.PLC_API_DEBUG
or hasattr(self, 'message')
:
self.log(0, runtime, *args)
return result
self.log(0, runtime, *args)
return result
@@
-139,13
+139,16
@@
class Method:
event.sync(commit = False)
event.sync(commit = False)
- # XXX object_ids is currently defined as a class variable
if hasattr(self, 'object_ids'):
for object_id in self.object_ids:
event.add_object(object_id, commit = False)
if hasattr(self, 'object_ids'):
for object_id in self.object_ids:
event.add_object(object_id, commit = False)
+ # Set the message for this event
+ if hasattr(self, 'message'):
+ event['message'] = self.message
+
# Commit
# Commit
- event.sync(
commit = True
)
+ event.sync()
def help(self, indent = " "):
"""
def help(self, indent = " "):
"""