* src/ReportBase/_ReportDialog.py (report): Use new report modules

for oddball reports.
	* src/plugins/GraphViz.py: Use new report modules.
	* src/plugins/NarrativeWeb.py: Use new report modules.
	* src/plugins/CountAncestors.py: Use wm and new report modules.
	* src/plugins/Summary.py: Use wm and new report modules.


svn: r6842
This commit is contained in:
Alex Roitman
2006-06-02 00:40:54 +00:00
parent 51f42ca315
commit c1c7e1359a
6 changed files with 68 additions and 50 deletions

View File

@@ -26,6 +26,8 @@
#
#-------------------------------------------------------------------------
import os
import logging
log = logging.getLogger(".")
#-------------------------------------------------------------------------
#
@@ -617,15 +619,12 @@ def report(dbstate,uistate,person,report_class,options_class,
elif category == CATEGORY_DRAW:
from _DrawReportDialog import DrawReportDialog
dialog_class = DrawReportDialog
elif category == CATEGORY_BOOK:
elif category in (CATEGORY_BOOK,CATEGORY_CODE,CATEGORY_VIEW,CATEGORY_WEB):
try:
report_class(dbstate,uistate,person)
except Errors.WindowActiveError:
pass
return
elif category in (CATEGORY_VIEW,CATEGORY_CODE,CATEGORY_WEB):
report_class(dbstate.db,person)
return
else:
dialog_class = ReportDialog