diff options
author | W. Trevor King <wking@drexel.edu> | 2008-12-02 10:14:06 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2008-12-02 10:14:06 -0500 |
commit | 6a94d050bbd72b3812fd7cb05445a66484103214 (patch) | |
tree | 55e8a3cd1d605132ccca46c3c5155e94ae0a6336 /libbe/comment.py | |
parent | a98aafc8572bb826a0fda1b6bca0011fc4ef126a (diff) | |
download | bugseverywhere-6a94d050bbd72b3812fd7cb05445a66484103214.tar.gz |
Added decorator-style properties to bugdir. Created settings_object module.
settings_object.SavedSettingsObject encapsulates some of the common
settings functionality in the BE BugDir, Bug, and Comment classes.
It's a bit awkward due to the nature of scoping in python subclasses,
but it's better than reproducing this code in each of the above classes.
Now I need to move Bug and Comment over to *this* system ;).
Diffstat (limited to 'libbe/comment.py')
-rw-r--r-- | libbe/comment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbe/comment.py b/libbe/comment.py index 0fd871c..e3c0a12 100644 --- a/libbe/comment.py +++ b/libbe/comment.py @@ -298,7 +298,7 @@ class Comment(Tree): def save_settings(self): map = {} for k,v in self.settings.items(): - if (v != None and v != EMPTY): + if v != None and v != EMPTY: map[k] = v for k in self.required_saved_properties: map[k] = getattr(self, self._setting_name_to_attr_name(k)) |