From d6df0463571e57111c1855ed97ebdea90a3142d2 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 25 Jul 2010 20:22:18 +0000 Subject: [PATCH] Load/store keywords. git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@235 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23 --- Storage/bkmk_stjson.py | 3 +++ 1 file changed, 3 insertions(+) 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"] -- 2.39.2