]> git.phdru.name Git - bookmarks_db.git/commitdiff
Load/store keywords.
authorOleg Broytman <phd@phdru.name>
Sun, 25 Jul 2010 20:22:18 +0000 (20:22 +0000)
committerOleg Broytman <phd@phdru.name>
Sun, 25 Jul 2010 20:22:18 +0000 (20:22 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@235 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Storage/bkmk_stjson.py

index 77b3a039348f01262313a4bbf12ebe0c5bd4d0f5..85eb84cc661f03319f0074007d33e8b30b915b0c 100644 (file)
@@ -57,6 +57,8 @@ class storage_json(Walker):
         dict["id"] = b.id
         index = getattr(b, 'index')
         if index: dict["index"] = index
+        keyword = getattr(b, 'keyword')
+        if keyword: dict["keyword"] = keyword
         dict["lastModified"] = b.last_modified
         dict["parent"] = b.parent_idx
         dict["title"] = b.name.decode('utf-8')
@@ -138,6 +140,7 @@ class storage_json(Walker):
                     href=record["uri"],
                     add_date=record.get("dateAdded"),
                     last_modified=record.get("lastModified"),
+                    keyword=record.get("keyword"),
                     comment=get_comment(record.get("annos")),
                     charset=record.get("charset"))
                 bookmark.id = record["id"]