Explorar o código

- add some documentation

oz123 %!s(int64=12) %!d(string=hai) anos
pai
achega
f274bd51c7
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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]