svn: r6903

This commit is contained in:
Don Allingham
2006-06-16 21:26:44 +00:00
parent c9a65984d6
commit 460a8ca0bd
7 changed files with 49 additions and 26 deletions

View File

@ -606,13 +606,20 @@ class ReportDialog(BareReportDialog):
#
#------------------------------------------------------------------------
def report(dbstate,uistate,person,report_class,options_class,
trans_name,name,category):
trans_name,name,category, require_active):
"""
report - task starts the report. The plugin system requires that the
task be in the format of task that takes a database and a person as
its arguments.
"""
if require_active and not person:
ErrorDialog(
_('Active person has not been set'),
_('You must select an active person for this report to work '
'properly.'))
return
if category == CATEGORY_TEXT:
from _TextReportDialog import TextReportDialog
dialog_class = TextReportDialog