* src/Plugins.py: move non-gui functions to PluginMgr.py

* src/PluginMgr.py: Non-gui functions for plugins
* src/Makefile.am: Added PluginMgr.py
* various: switch from Plugins to PluginMgr


svn: r3866
This commit is contained in:
Don Allingham
2005-01-05 05:02:19 +00:00
parent 5ed9b8db51
commit e7569e2671
79 changed files with 589 additions and 539 deletions

View File

@ -1398,6 +1398,8 @@ class IsSpouseOfFilterMatch(Rule):
class GenericFilter:
"""Filter class that consists of several rules"""
logical_functions = ['or', 'and', 'xor', 'one']
def __init__(self,source=None):
if source:
self.need_param = source.need_param
@ -1415,7 +1417,7 @@ class GenericFilter:
self.invert = 0
def set_logical_op(self,val):
if val in const.logical_functions:
if val in GenericFilter.logical_functions:
self.logical_op = val
else:
self.logical_op = 'and'