Elimination of redundant code, new registering method for plugins
svn: r367
This commit is contained in:
@ -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,'<','<')
|
||||
return string.replace(l,'"','"')
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
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")
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user