diff options
author | W. Trevor King <wking@tremily.us> | 2012-10-25 08:12:59 -0400 |
---|---|---|
committer | W. Trevor King <wking@tremily.us> | 2012-10-25 08:14:16 -0400 |
commit | d3413d36bf16e991e40308134d2db32c0fa5294b (patch) | |
tree | 0bd5b9989007721de45050df16cdd75443fd394b | |
parent | b4cc4bb4b7b5d3311158fdabd8296284e36aff62 (diff) | |
download | bugseverywhere-d3413d36bf16e991e40308134d2db32c0fa5294b.tar.gz |
bugdir|bug|comment: update default settings string to be value JSON.
-rw-r--r-- | libbe/bug.py | 2 | ||||
-rw-r--r-- | libbe/bugdir.py | 2 | ||||
-rw-r--r-- | 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: |