diff options
author | W. Trevor King <wking@drexel.edu> | 2010-01-22 20:38:57 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-01-22 20:38:57 -0500 |
commit | 331a641325daf3b067ecde2a51b5308c9287444e (patch) | |
tree | 99a7f1a42a22abd41e27853287771baade096212 /libbe/bug.py | |
parent | 4d925a688394b7840ec81165bbf2cdd43536f01b (diff) | |
download | bugseverywhere-331a641325daf3b067ecde2a51b5308c9287444e.tar.gz |
Move BugDir, Bug, and Comment to new _setup_saved_settings
Diffstat (limited to 'libbe/bug.py')
-rw-r--r-- | libbe/bug.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbe/bug.py b/libbe/bug.py index 275a826..0b40921 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -121,7 +121,7 @@ def load_status(active_status_def, inactive_status_def): load_status(active_status_def, inactive_status_def) -class Bug(settings_object.SavedSettingsObject): +class Bug (settings_object.SavedSettingsObject): """ >>> b = Bug() >>> print b.status @@ -628,11 +628,11 @@ class Bug(settings_object.SavedSettingsObject): settings_mapfile = \ self.storage.get(self.id.storage('values'), default='\n') try: - self.settings = mapfile.parse(settings_mapfile) + settings = mapfile.parse(settings_mapfile) except mapfile.InvalidMapfileContents, e: raise Exception('Invalid settings file for bug %s\n' '(BE version missmatch?)' % self.id.user()) - self._setup_saved_settings() + self._setup_saved_settings(settings) def save_settings(self): mf = mapfile.generate(self._get_saved_settings()) |