]> p2p-next.cs.pub.ro Git - cs-p2p-next.git/commitdiff
ppf: Fix: Use database instead of self.database.
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Wed, 17 Aug 2011 13:56:45 +0000 (16:56 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Wed, 17 Aug 2011 13:56:45 +0000 (16:56 +0300)
ppf/db/access.py

index 1ee21d0ddf9353024cf4ffb4c26c835ef74e491b..011428942f0f4462e7d2d09efeb28b660be3933a 100644 (file)
@@ -111,9 +111,9 @@ class SQLiteDatabaseAccess(DatabaseAccess):
     """
 
     def connect(self, database):
-        if not os.path.isfile(self.database):
+        if not os.path.isfile(database):
             return False
-        self.conn = sqlite3.connect(self.dbname)
+        self.conn = sqlite3.connect(database)
         self.cursor = self.conn.cursor()
         return True