git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d27404
)
- fix add_object() usage
author
Mark Huang
<mlhuang@cs.princeton.edu>
Thu, 11 Jan 2007 23:00:36 +0000
(23:00 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Thu, 11 Jan 2007 23:00:36 +0000
(23:00 +0000)
PLC/Sessions.py
patch
|
blob
|
history
diff --git
a/PLC/Sessions.py
b/PLC/Sessions.py
index
8c9701b
..
3c1543e
100644
(file)
--- a/
PLC/Sessions.py
+++ b/
PLC/Sessions.py
@@
-37,8
+37,8
@@
class Session(Row):
self.api.db.do("DELETE FROM node_session WHERE node_id = %d" % \
node['node_id'])
- add = Row.add_object(Node, '
person
_session')
- add(self, node, commit)
+ add = Row.add_object(Node, '
node
_session')
+ add(self, node, commit
= commit
)
def sync(self, commit = True, insert = None):
if not self.has_key('session_id'):