From: W. Trevor King Date: Sun, 17 Apr 2011 02:02:38 +0000 (-0400) Subject: Revert 54801289, which makes it impossible to save new bugs/comments. X-Git-Tag: 1.1.0~205 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dee6c53adad0be50bbe1c812f134392ae80bd3f1;p=be.git Revert 54801289, which makes it impossible to save new bugs/comments. --- 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: