From dee6c53adad0be50bbe1c812f134392ae80bd3f1 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 16 Apr 2011 22:02:38 -0400 Subject: [PATCH] Revert 54801289, which makes it impossible to save new bugs/comments. --- libbe/bug.py | 3 ++- libbe/comment.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libbe/bug.py b/libbe/bug.py index 38af60c..6421cbc 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -636,7 +636,8 @@ 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')) + settings_mapfile = self.storage.get( + self.id.storage('values'), '\n') try: settings = mapfile.parse(settings_mapfile) except mapfile.InvalidMapfileContents, e: diff --git a/libbe/comment.py b/libbe/comment.py index b974aa8..2f460e1 100644 --- a/libbe/comment.py +++ b/libbe/comment.py @@ -599,7 +599,8 @@ class Comment (Tree, settings_object.SavedSettingsObject): if self.uuid == INVALID_UUID: return if settings_mapfile == None: - settings_mapfile = self.storage.get(self.id.storage('values')) + settings_mapfile = self.storage.get( + self.id.storage('values'), '\n') try: settings = mapfile.parse(settings_mapfile) except mapfile.InvalidMapfileContents, e: -- 2.26.2