Browse Source

remove set_tags in NewNode

oz123 11 years ago
parent
commit
9181be7a46
2 changed files with 1 additions and 16 deletions
  1. 0 14
      pwman/data/nodes.py
  2. 1 2
      pwman/ui/cli.py

+ 0 - 14
pwman/data/nodes.py

@@ -90,21 +90,7 @@ class NewNode(object):
         dump = [dump]
         return dump
 
-    def set_tags(self, tags):
-        """
-        TODO: remove all references
-        this method expects a list of tag instances.
-        hence feed it with them.
-
-        fixed! the method parse_node_string in
-        SQLiteDatabase returns a dictionary,
-        but a also, Tags instances..."""
-        self._tags = []
-        if tags:
-            self._tags = [t for t in tags]
-
     def set_id(self, id):
-
         self._id = id
 
     @property

+ 1 - 2
pwman/ui/cli.py

@@ -991,8 +991,7 @@ class PwmanCliNew(PwmanCli):
             url = self.get_url()
             notes = self.get_notes()
             node = NewNode(username, password, url, notes)
-            tags = self.get_tags()
-            node.set_tags(tags)
+            node.tags = self.get_tags()
             self._db.addnodes([node])
             print "Password ID: %d" % (node._id)
             # when done with node erase it