oz123 пре 12 година
родитељ
комит
f274bd51c7
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      pwman/data/drivers/sqlite.py

+ 3 - 1
pwman/data/drivers/sqlite.py

@@ -277,7 +277,6 @@ class SQLiteDatabase(Database):
             self._cur.execute("CREATE TABLE KEY"
             self._cur.execute("CREATE TABLE KEY"
                               + "(THEKEY TEXT NOT NULL DEFAULT '')");
                               + "(THEKEY TEXT NOT NULL DEFAULT '')");
             self._cur.execute("INSERT INTO KEY VALUES('')");
             self._cur.execute("INSERT INTO KEY VALUES('')");
-
             try:
             try:
                 self._con.commit()
                 self._con.commit()
             except DatabaseError, e:
             except DatabaseError, e:
@@ -288,6 +287,9 @@ class SQLiteDatabase(Database):
         """
         """
         This function is saving the key to table KEY. 
         This function is saving the key to table KEY. 
         The key already arrives as an encrypted string.
         The key already arrives as an encrypted string.
+        It is the same self._keycrypted from 
+        crypto py (check with id(self._keycrypted) and 
+        id(key) here. 
         """
         """
         sql = "UPDATE KEY SET THEKEY = ?"
         sql = "UPDATE KEY SET THEKEY = ?"
         values = [key]
         values = [key]