소스 검색

Fix NewNode initialisation in the win ui

oz123 10 년 전
부모
커밋
654360e115
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      pwman/ui/win.py

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