* src/PluginUtils/_PluginMgr.py: Import MODE_CLI.

* src/ReportBase/_BookFormatComboBox.py: Adapt to changes.


svn: r6831
This commit is contained in:
Alex Roitman
2006-05-31 19:26:34 +00:00
parent 2e3d406b62
commit b42f24a983
6 changed files with 83 additions and 55 deletions

View File

@ -617,9 +617,12 @@ def report(dbstate,uistate,person,report_class,options_class,
elif category == CATEGORY_DRAW:
from _DrawReportDialog import DrawReportDialog
dialog_class = DrawReportDialog
elif category in (CATEGORY_BOOK,CATEGORY_VIEW,CATEGORY_CODE,CATEGORY_WEB):
elif category == CATEGORY_BOOK:
report_class(dbstate,uistate,person)
return
elif category in (CATEGORY_VIEW,CATEGORY_CODE,CATEGORY_WEB):
report_class(dbstate.db,person)
return
else:
dialog_class = ReportDialog