Procházet zdrojové kódy

- add some documentation

oz123 před 12 roky
rodič
revize
f274bd51c7
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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"
                               + "(THEKEY TEXT NOT NULL DEFAULT '')");
             self._cur.execute("INSERT INTO KEY VALUES('')");
-
             try:
                 self._con.commit()
             except DatabaseError, e:
@@ -288,6 +287,9 @@ class SQLiteDatabase(Database):
         """
         This function is saving the key to table KEY. 
         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 = ?"
         values = [key]