aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/bugdir.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-22 11:30:26 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-22 11:30:26 -0500
commitbda68bb5d93f4b608fb1dd17c5a0cf1bb406daf9 (patch)
treec250b47d8f20e7df63fd20495f32e6cb1e985b0c /libbe/bugdir.py
parenta818e71b0c3ae00e7c67ce745e49c7cef7ceac55 (diff)
downloadbugseverywhere-bda68bb5d93f4b608fb1dd17c5a0cf1bb406daf9.tar.gz
Reworked settings_object module, but command.init tests still fail:
$ python test.py libbe.command.init Doctest: libbe.command.init.Init ... FAIL ... ----------------------- File ".../libbe/command/init.py", line 47, in libbe.command.init.Init Failed example: ui.run(cmd) Exception raised: Traceback (most recent call last): ... File "/tmp/be.wtk/libbe/command/init.py", line 97, in _run bd = libbe.bugdir.BugDir(storage, from_storage=False) File "/tmp/be.wtk/libbe/bugdir.py", line 185, in __init__ self.save() File "/tmp/be.wtk/libbe/bugdir.py", line 228, in save self.save_settings() File "/tmp/be.wtk/libbe/bugdir.py", line 204, in save_settings mf = mapfile.generate(self._get_saved_settings()) File "/tmp/be.wtk/libbe/storage/util/settings_object.py", line 230, in _get_saved_settings self, self._setting_name_to_attr_name(k)) File "/tmp/be.wtk/libbe/storage/util/properties.py", line 194, in _fget value = fget(self) File "/tmp/be.wtk/libbe/storage/util/properties.py", line 329, in _fget primer(self) File "/tmp/be.wtk/libbe/storage/util/settings_object.py", line 69, in prop_load_settings self.load_settings() File "/tmp/be.wtk/libbe/bugdir.py", line 194, in load_settings self.settings = mapfile.parse(settings_mapfile) File "/tmp/be.wtk/libbe/storage/util/mapfile.py", line 123, in parse c = yaml.load(contents) ... File "/usr/lib/python2.6/site-packages/yaml/reader.py", line 213, in update_raw data = self.stream.read(size) AttributeError: 'NoneType' object has no attribute 'read' ...
Diffstat (limited to 'libbe/bugdir.py')
-rw-r--r--libbe/bugdir.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/libbe/bugdir.py b/libbe/bugdir.py
index 8389716..02a4386 100644
--- a/libbe/bugdir.py
+++ b/libbe/bugdir.py
@@ -178,12 +178,9 @@ 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()
- self.settings = {}
- self._setup_saved_settings()
if self.storage != None and self.storage.is_writeable():
self.save()