iro/acounting.py
changeset 67 d1912509f375
parent 60 5ca3aa8d75e1
child 70 a9ee0fe847a8
--- a/iro/acounting.py	Sat Oct 08 12:32:58 2011 +0200
+++ b/iro/acounting.py	Fri Nov 18 22:32:57 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()