From: Oleg Broytman Date: Sun, 25 Jul 2010 20:22:18 +0000 (+0000) Subject: Load/store keywords. X-Git-Tag: v4.5.3~141 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=d6df0463571e57111c1855ed97ebdea90a3142d2;p=bookmarks_db.git Load/store keywords. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@235 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- diff --git a/Storage/bkmk_stjson.py b/Storage/bkmk_stjson.py index 77b3a03..85eb84c 100644 --- a/Storage/bkmk_stjson.py +++ b/Storage/bkmk_stjson.py @@ -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"]