aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/comment.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2008-12-02 10:14:06 -0500
committerW. Trevor King <wking@drexel.edu>2008-12-02 10:14:06 -0500
commit6a94d050bbd72b3812fd7cb05445a66484103214 (patch)
tree55e8a3cd1d605132ccca46c3c5155e94ae0a6336 /libbe/comment.py
parenta98aafc8572bb826a0fda1b6bca0011fc4ef126a (diff)
downloadbugseverywhere-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.py2
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))