diff --git a/gramps2/src/PluginMgr.py b/gramps2/src/PluginMgr.py index 2645cd682..a617934e7 100644 --- a/gramps2/src/PluginMgr.py +++ b/gramps2/src/PluginMgr.py @@ -43,7 +43,6 @@ from gettext import gettext as _ # GRAMPS modules # #------------------------------------------------------------------------- -import const import Errors #------------------------------------------------------------------------- @@ -251,7 +250,7 @@ def register_report( (junk,book_item_task) = divmod(modes-standalone_task,2**Report.MODE_BKI) if book_item_task: - book_item_category = const.book_categories[category] + book_item_category = Report.book_categories[category] register_book_item(translated_name,book_item_category, report_class,options_class,name) diff --git a/gramps2/src/Plugins.py b/gramps2/src/Plugins.py index ef2663783..ef4473bdb 100644 --- a/gramps2/src/Plugins.py +++ b/gramps2/src/Plugins.py @@ -268,7 +268,7 @@ class PluginDialog: # build the tree items and group together based on the category name item_hash = {} for report in item_list: - category = const.standalone_categories[report[3]] + category = Report.standalone_categories[report[3]] if item_hash.has_key(category): item_hash[category].append(report) else: @@ -466,7 +466,7 @@ def build_report_menu(top_menu,callback): hash_data = {} for report in PluginMgr.report_list: - standalone_category = const.standalone_categories[report[3]] + standalone_category = Report.standalone_categories[report[3]] if hash_data.has_key(standalone_category): hash_data[standalone_category].append( (report[0],report[1],report[2],report[4],report[3])) diff --git a/gramps2/src/Report.py b/gramps2/src/Report.py index e1362a17e..f0ea825ed 100644 --- a/gramps2/src/Report.py +++ b/gramps2/src/Report.py @@ -985,7 +985,7 @@ class ReportDialog(BareReportDialog): def get_title(self): """The window title for this dialog""" name = self.report_name - category = const.standalone_categories[self.category] + category = standalone_categories[self.category] return "%s - %s - GRAMPS" % (name,category) def get_header(self, name):