diff options
author | W. Trevor King <wking@drexel.edu> | 2010-01-22 11:30:26 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2010-01-22 11:30:26 -0500 |
commit | bda68bb5d93f4b608fb1dd17c5a0cf1bb406daf9 (patch) | |
tree | c250b47d8f20e7df63fd20495f32e6cb1e985b0c /libbe/comment.py | |
parent | a818e71b0c3ae00e7c67ce745e49c7cef7ceac55 (diff) | |
download | bugseverywhere-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/comment.py')
-rw-r--r-- | libbe/comment.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libbe/comment.py b/libbe/comment.py index f0cc45c..f1b979e 100644 --- a/libbe/comment.py +++ b/libbe/comment.py @@ -206,8 +206,6 @@ class Comment(Tree, settings_object.SavedSettingsObject): if from_storage == False: if uuid == None: self.uuid = libbe.util.id.uuid_gen() - self.settings = {} - self._setup_saved_settings() self.time = int(time.time()) # only save to second precision self.in_reply_to = in_reply_to self.body = body |