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 1ee21d0..0114289 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