فهرست منبع

- add some documentation

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]