aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/bugdir.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-30 10:29:22 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-30 10:29:22 -0500
commit3a1f36b08835772fb80141f57220b0460e1fc67b (patch)
tree3da57bff455aaae2ccbcde2e74e7cc69bd963121 /libbe/bugdir.py
parent55e43b6c6f260e3fd1bbed93fcabdb9790404904 (diff)
downloadbugseverywhere-3a1f36b08835772fb80141f57220b0460e1fc67b.tar.gz
Always load settings when initializing BugDir from storage.
Avoids problems like: $ be html Traceback (most recent call last): File "be", line 21, in <module> sys.exit(libbe.ui.command_line.main()) File ".../libbe/ui/command_line.py", line 327, in main ret = dispatch(ui, command, args) File ".../libbe/ui/command_line.py", line 267, in dispatch ret = ui.run(command, options, args) File ".../libbe/command/base.py", line 504, in run return command.run(options, args) File ".../libbe/command/base.py", line 233, in run self.status = self._run(**params) File ".../libbe/command/html.py", line 111, in _run html_gen.run(params['output']) File ".../libbe/command/html.py", line 154, in run bugs.sort() File ".../libbe/bug.py", line 261, in __cmp__ return cmp_full(self, other) File ".../libbe/bug.py", line 818, in __call__ val = comparison(bug_1, bug_2) File ".../libbe/bug.py", line 750, in cmp_status return cmp(status_index[bug_1.status], status_index[bug_2.status]) File ".../libbe/storage/util/properties.py", line 223, in _fget raise ValueCheckError(name, value, value_allowed_fn) libbe.storage.util.properties.ValueCheckError: open-feature not allowed by <function <lambda> at 0x84b610c> for status
Diffstat (limited to 'libbe/bugdir.py')
-rw-r--r--libbe/bugdir.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py
index dd467bf..3c3afa0 100644
--- a/libbe/bugdir.py
+++ b/libbe/bugdir.py
@@ -178,6 +178,7 @@ class BugDir (list, settings_object.SavedSettingsObject):
if self.uuid == None:
self.uuid = [c for c in self.storage.children()
if c != 'version'][0]
+ self.load_settings()
else:
if self.uuid == None:
self.uuid = libbe.util.id.uuid_gen()