From: Mark Huang Date: Thu, 11 Jan 2007 23:00:36 +0000 (+0000) Subject: - fix add_object() usage X-Git-Tag: pycurl-7_13_1~115 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=04243838b21dfbccaf49d275df2aa5320564cd8f;hp=1d27404fac941754438e07ee7920caff81580423;p=plcapi.git - fix add_object() usage --- diff --git a/PLC/Sessions.py b/PLC/Sessions.py index 8c9701b..3c1543e 100644 --- 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'):