- fix add_object() usage
authorMark Huang <mlhuang@cs.princeton.edu>
Thu, 11 Jan 2007 23:00:36 +0000 (23:00 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Thu, 11 Jan 2007 23:00:36 +0000 (23:00 +0000)
PLC/Sessions.py

index 8c9701b..3c1543e 100644 (file)
@@ -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'):