Elimination of redundant code, new registering method for plugins

svn: r367
This commit is contained in:
Don Allingham
2001-08-31 03:40:23 +00:00
parent 8543bd85f7
commit 59d53915b9
59 changed files with 1872 additions and 2518 deletions

View File

@ -199,7 +199,7 @@ class EventComparison:
self.filter_list = []
myMenu = GtkMenu()
for filter in Filter.filterList:
for filter in Filter.filterMap.keys():
menuitem = GtkMenuItem(filter)
myMenu.append(menuitem)
menuitem.set_data(FILTER,Filter.filterMap[filter])
@ -449,17 +449,6 @@ class EventComparison:
def runTool(database,person,callback):
EventComparison(database)
#-------------------------------------------------------------------------
#
#
#
#-------------------------------------------------------------------------
def get_description():
return _("Aids in the analysis of data by allowing the development of custom filters that can be applied to the database to find similar events")
def get_name():
return _("Analysis and Exploration/Compare individual events")
#-------------------------------------------------------------------------
#
#
@ -608,3 +597,18 @@ def fix(line):
l = string.replace(l,'>','>')
l = string.replace(l,'<','&lt;')
return string.replace(l,'"','&quot;')
#-------------------------------------------------------------------------
#
#
#
#-------------------------------------------------------------------------
from Plugins import register_tool
register_tool(
runTool,
_("Compare individual events"),
category=_("Analysis and Exploration"),
description=_("Aids in the analysis of data by allowing the development of custom filters that can be applied to the database to find similar events")
)