瀏覽代碼

- 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]