From 6a94d050bbd72b3812fd7cb05445a66484103214 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Tue, 2 Dec 2008 10:14:06 -0500 Subject: 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 ;). --- libbe/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbe/comment.py') 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)) -- cgit