Update
svn: r5244
This commit is contained in:
parent
4d3a6ffae7
commit
3ba7eed3e9
@ -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)
|
||||
|
||||
|
@ -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]))
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user