From 3a1f36b08835772fb80141f57220b0460e1fc67b Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 30 Jan 2010 10:29:22 -0500 Subject: [PATCH] Always load settings when initializing BugDir from storage. Avoids problems like: $ be html Traceback (most recent call last): File "be", line 21, in 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 at 0x84b610c> for status --- libbe/bugdir.py | 1 + 1 file changed, 1 insertion(+) 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() -- 2.26.2