From d3413d36bf16e991e40308134d2db32c0fa5294b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 25 Oct 2012 08:12:59 -0400 Subject: [PATCH] bugdir|bug|comment: update default settings string to be value JSON. --- libbe/bug.py | 2 +- libbe/bugdir.py | 2 +- libbe/comment.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libbe/bug.py b/libbe/bug.py index 01a953e..c9b2acd 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -748,7 +748,7 @@ class Bug (settings_object.SavedSettingsObject): def load_settings(self, settings_mapfile=None): if settings_mapfile == None: settings_mapfile = self.storage.get( - self.id.storage('values'), '\n') + self.id.storage('values'), '{}\n') try: settings = mapfile.parse(settings_mapfile) except mapfile.InvalidMapfileContents, e: diff --git a/libbe/bugdir.py b/libbe/bugdir.py index d485f5d..34c63c0 100644 --- a/libbe/bugdir.py +++ b/libbe/bugdir.py @@ -183,7 +183,7 @@ class BugDir (list, settings_object.SavedSettingsObject): def load_settings(self, settings_mapfile=None): if settings_mapfile == None: settings_mapfile = \ - self.storage.get(self.id.storage('settings'), default='\n') + self.storage.get(self.id.storage('settings'), default='{}\n') try: settings = mapfile.parse(settings_mapfile) except mapfile.InvalidMapfileContents, e: diff --git a/libbe/comment.py b/libbe/comment.py index ed38d0b..c1813b4 100644 --- a/libbe/comment.py +++ b/libbe/comment.py @@ -609,7 +609,7 @@ class Comment (Tree, settings_object.SavedSettingsObject): return if settings_mapfile == None: settings_mapfile = self.storage.get( - self.id.storage('values'), '\n') + self.id.storage('values'), '{}\n') try: settings = mapfile.parse(settings_mapfile) except mapfile.InvalidMapfileContents, e: -- 2.26.2