Browse Source

Merge branch 'master' of https://github.com/pwman3/pwman3

oz123 10 years ago
parent
commit
24dc19bf0f
3 changed files with 8 additions and 3 deletions
  1. 1 1
      pwman/data/convertdb.py
  2. 2 1
      pwman/ui/tools.py
  3. 5 1
      pwman/ui/win.py

+ 1 - 1
pwman/data/convertdb.py

@@ -29,7 +29,7 @@ from pwman.data.database import Database, DatabaseException
 import sqlite3 as sqlite
 import pwman.util.config as config
 import sys
-if sys.platform_info.major > 2:
+if sys.version_info.major > 2:
     import pickle as cPickle
 else:
     import cPickle

+ 2 - 1
pwman/ui/tools.py

@@ -43,7 +43,8 @@ if sys.platform != 'win32':
     _readline_available = True
 else:  # pragma: no cover
     try:
-        import pyreadline as readline
+        #import pyreadline as readline
+        import readline
         _readline_available = True
     except ImportError as e:
         _readline_available = False

+ 5 - 1
pwman/ui/win.py

@@ -75,7 +75,11 @@ class PwmanCliWinNew(PwmanCliNew):
                                              special_signs=special_chars)
             url = self.get_url()
             notes = self.get_notes()
-            node = NewNode(username, password, url, notes)
+            node = NewNode()
+            node.username = username
+            node.password = password
+            node.url = url
+            node.notes = notes
             tags = self.get_tags()
             node.tags = tags
             self._db.addnodes([node])