03172: Error editing event filter
svn: r13066
This commit is contained in:
parent
27fbd80a05
commit
a111d627eb
@ -204,7 +204,7 @@ class EditFilter(ManagedWindow.ManagedWindow):
|
||||
pass
|
||||
|
||||
def update_rule(self, old_rule, new_rule):
|
||||
if old_rule:
|
||||
if old_rule is not None:
|
||||
self.filter.delete_rule(old_rule)
|
||||
self.filter.add_rule(new_rule)
|
||||
self.draw_rules()
|
||||
|
@ -516,7 +516,7 @@ class EditRule(ManagedWindow.ManagedWindow):
|
||||
# If editing a rule, get the name so that we can select it later
|
||||
#
|
||||
sel_node = None
|
||||
if self.active_rule:
|
||||
if self.active_rule is not None:
|
||||
self.sel_class = self.active_rule.__class__
|
||||
else:
|
||||
self.sel_class = None
|
||||
|
@ -69,8 +69,6 @@ class Rule(object):
|
||||
def apply(self, db, person):
|
||||
return True
|
||||
|
||||
__nonzero__ = apply
|
||||
|
||||
def display_values(self):
|
||||
v = ( '%s="%s"' % ((_(self.labels[ix]),)*2)
|
||||
for ix in xrange(len(self.list)) if self.list[ix] )
|
||||
|
Loading…
Reference in New Issue
Block a user