iro/acounting.py
changeset 69 67ecea2d9b67
parent 67 d1912509f375
child 70 a9ee0fe847a8
--- a/iro/acounting.py	Thu Nov 03 22:47:30 2011 +0100
+++ b/iro/acounting.py	Fri Nov 18 22:36:50 2011 +0100
@@ -9,8 +9,13 @@
         Database.__init__(self,connection)
         self.id=id
 
-    def setId(self,id):
+    def setId(self,id, user):
         self.id=id
+        if user:
+            self.connect()
+            self.cursor.execute ("INSERT INTO %s (id,user) VALUES ('%s','%s')" % (self.connection['overview'], self.id,user.name))
+            self.disconnect()
+
 
     def getStatus(self):
         self.connect()