From: W. Trevor King Date: Thu, 25 Oct 2012 12:12:59 +0000 (-0400) Subject: bugdir|bug|comment: update default settings string to be value JSON. X-Git-Tag: 1.1.0~65 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d3413d36bf16e991e40308134d2db32c0fa5294b;p=be.git bugdir|bug|comment: update default settings string to be value JSON. --- 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: