bugdir|bug|comment: update default settings string to be value JSON.
authorW. Trevor King <wking@tremily.us>
Thu, 25 Oct 2012 12:12:59 +0000 (08:12 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 25 Oct 2012 12:14:16 +0000 (08:14 -0400)
libbe/bug.py
libbe/bugdir.py
libbe/comment.py

index 01a953e1b529c815b235804b78dc4537d3cb0f5d..c9b2acd72a8f759ea84599843f2d46070e55642f 100644 (file)
@@ -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:
index d485f5dbb15f801200c6dbac76025df0e9043ac6..34c63c0b23f9a5aad91568f5d5a7565049ad16da 100644 (file)
@@ -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:
index ed38d0b2de434a15ec3e9f8c9ba0286a090bf52b..c1813b437c29e6dff7f4c67bbc79159e83e5e512 100644 (file)
@@ -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: