Remove support for "View" reports. In the future, use either tools, gramplets, or quick views.
svn: r10424
This commit is contained in:
parent
9988d5ecfa
commit
cf6073a4ba
@ -45,16 +45,14 @@ CATEGORY_TEXT = 0
|
|||||||
CATEGORY_DRAW = 1
|
CATEGORY_DRAW = 1
|
||||||
CATEGORY_CODE = 2
|
CATEGORY_CODE = 2
|
||||||
CATEGORY_WEB = 3
|
CATEGORY_WEB = 3
|
||||||
CATEGORY_VIEW = 4
|
CATEGORY_BOOK = 4
|
||||||
CATEGORY_BOOK = 5
|
CATEGORY_GRAPHVIZ = 5
|
||||||
CATEGORY_GRAPHVIZ = 6
|
|
||||||
|
|
||||||
standalone_categories = {
|
standalone_categories = {
|
||||||
CATEGORY_TEXT : _("Text Reports"),
|
CATEGORY_TEXT : _("Text Reports"),
|
||||||
CATEGORY_DRAW : _("Graphical Reports"),
|
CATEGORY_DRAW : _("Graphical Reports"),
|
||||||
CATEGORY_CODE : _("Code Generators"),
|
CATEGORY_CODE : _("Code Generators"),
|
||||||
CATEGORY_WEB : _("Web Pages"),
|
CATEGORY_WEB : _("Web Pages"),
|
||||||
CATEGORY_VIEW : _("View"),
|
|
||||||
CATEGORY_BOOK : _("Books"),
|
CATEGORY_BOOK : _("Books"),
|
||||||
CATEGORY_GRAPHVIZ : _("Graphs"),
|
CATEGORY_GRAPHVIZ : _("Graphs"),
|
||||||
}
|
}
|
||||||
|
@ -48,8 +48,8 @@ import Config
|
|||||||
import Errors
|
import Errors
|
||||||
from QuestionDialog import ErrorDialog, OptionDialog
|
from QuestionDialog import ErrorDialog, OptionDialog
|
||||||
from _Constants import (CATEGORY_TEXT, CATEGORY_DRAW, CATEGORY_BOOK,
|
from _Constants import (CATEGORY_TEXT, CATEGORY_DRAW, CATEGORY_BOOK,
|
||||||
CATEGORY_VIEW, CATEGORY_CODE, CATEGORY_WEB,
|
CATEGORY_CODE, CATEGORY_WEB, CATEGORY_GRAPHVIZ,
|
||||||
CATEGORY_GRAPHVIZ, standalone_categories)
|
standalone_categories)
|
||||||
from _BareReportDialog import BareReportDialog
|
from _BareReportDialog import BareReportDialog
|
||||||
from _FileEntry import FileEntry
|
from _FileEntry import FileEntry
|
||||||
|
|
||||||
@ -287,7 +287,7 @@ def report(dbstate,uistate,person,report_class, options_class,
|
|||||||
elif category == CATEGORY_WEB:
|
elif category == CATEGORY_WEB:
|
||||||
from _WebReportDialog import WebReportDialog
|
from _WebReportDialog import WebReportDialog
|
||||||
dialog_class = WebReportDialog
|
dialog_class = WebReportDialog
|
||||||
elif category in (CATEGORY_BOOK,CATEGORY_CODE,CATEGORY_VIEW):
|
elif category in (CATEGORY_BOOK, CATEGORY_CODE):
|
||||||
try:
|
try:
|
||||||
report_class(dbstate,uistate)
|
report_class(dbstate,uistate)
|
||||||
except Errors.WindowActiveError:
|
except Errors.WindowActiveError:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user