]> git.phdru.name Git - bookmarks_db.git/blobdiff - Storage/bkmk_stjson.py
Load/store keywords.
[bookmarks_db.git] / 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"]