* src/plugins/webreport/NarrativeWeb.py


svn: r11954
This commit is contained in:
Kees Bakker 2009-02-10 20:51:39 +00:00
parent f5b9632e97
commit 8236c4f8ce

View File

@ -129,6 +129,7 @@ _CSS_FILES = [
[_("Mainz"), 'Web_Mainz.css'],
[_("Nebraska"), 'Web_Nebraska.css'],
[_("Visually Impaired"), 'Web_Visually.css'],
[_("No style sheet"), ''],
]
@ -2972,8 +2973,9 @@ class NavWebReport(Report):
self.copy_file(fname, "behaviour.css", "styles")
# copy screen stylesheet
fname = os.path.join(const.DATA_DIR, self.css)
self.copy_file(fname, self.css, "styles")
if self.css:
fname = os.path.join(const.DATA_DIR, self.css)
self.copy_file(fname, self.css, "styles")
# copy printer stylesheet
fname = os.path.join(const.DATA_DIR, "Web_Print-Default.css")
@ -3337,10 +3339,8 @@ class NavWebOptions(MenuReportOptions):
menu.add_option(category_name, "ext", ext)
cright = EnumeratedListOption(_('Copyright'), 0 )
index = 0
for copt in _COPY_OPTIONS:
for index, copt in enumerate(_COPY_OPTIONS):
cright.add_item(index, copt)
index += 1
cright.set_help( _("The copyright to be used for the web files"))
menu.add_option(category_name, "cright", cright)