From cf6073a4bab8e3261240d9b48c8704e7b7f29a3d Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sun, 30 Mar 2008 04:38:37 +0000 Subject: [PATCH] Remove support for "View" reports. In the future, use either tools, gramplets, or quick views. svn: r10424 --- src/ReportBase/_Constants.py | 6 ++---- src/ReportBase/_ReportDialog.py | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/ReportBase/_Constants.py b/src/ReportBase/_Constants.py index f34b781b4..530b9827a 100644 --- a/src/ReportBase/_Constants.py +++ b/src/ReportBase/_Constants.py @@ -45,16 +45,14 @@ CATEGORY_TEXT = 0 CATEGORY_DRAW = 1 CATEGORY_CODE = 2 CATEGORY_WEB = 3 -CATEGORY_VIEW = 4 -CATEGORY_BOOK = 5 -CATEGORY_GRAPHVIZ = 6 +CATEGORY_BOOK = 4 +CATEGORY_GRAPHVIZ = 5 standalone_categories = { CATEGORY_TEXT : _("Text Reports"), CATEGORY_DRAW : _("Graphical Reports"), CATEGORY_CODE : _("Code Generators"), CATEGORY_WEB : _("Web Pages"), - CATEGORY_VIEW : _("View"), CATEGORY_BOOK : _("Books"), CATEGORY_GRAPHVIZ : _("Graphs"), } diff --git a/src/ReportBase/_ReportDialog.py b/src/ReportBase/_ReportDialog.py index 2ed32f1da..8810d1c97 100644 --- a/src/ReportBase/_ReportDialog.py +++ b/src/ReportBase/_ReportDialog.py @@ -48,8 +48,8 @@ import Config import Errors from QuestionDialog import ErrorDialog, OptionDialog from _Constants import (CATEGORY_TEXT, CATEGORY_DRAW, CATEGORY_BOOK, - CATEGORY_VIEW, CATEGORY_CODE, CATEGORY_WEB, - CATEGORY_GRAPHVIZ, standalone_categories) + CATEGORY_CODE, CATEGORY_WEB, CATEGORY_GRAPHVIZ, + standalone_categories) from _BareReportDialog import BareReportDialog from _FileEntry import FileEntry @@ -287,7 +287,7 @@ def report(dbstate,uistate,person,report_class, options_class, elif category == CATEGORY_WEB: from _WebReportDialog import WebReportDialog dialog_class = WebReportDialog - elif category in (CATEGORY_BOOK,CATEGORY_CODE,CATEGORY_VIEW): + elif category in (CATEGORY_BOOK, CATEGORY_CODE): try: report_class(dbstate,uistate) except Errors.WindowActiveError: