* src/docgen/HtmlDoc.py: fix html template loading.

* src/ReportBase/_ReportDialog.py: fix html template loading.

svn: r8120
This commit is contained in:
Brian Matherly
2007-02-15 03:18:03 +00:00
parent ef3273a6ac
commit 9d31b54646
3 changed files with 11 additions and 6 deletions

View File

@@ -457,7 +457,7 @@ class ReportDialog(BareReportDialog):
for template in tlist:
if template != _user_template:
self.template_combo.append_text(template)
if _template_map[template] == template_name:
if _template_map[template] == os.path.basename(template_name):
active_index = template_index
template_index = template_index + 1
self.template_combo.append_text(_user_template)
@@ -608,7 +608,7 @@ class ReportDialog(BareReportDialog):
if text == _user_template:
self.template_name = self.html_fileentry.get_full_path(0)
else:
self.template_name = "%s/%s" % (const.template_dir,
self.template_name = "%s%s%s" % (const.template_dir,os.path.sep,
_template_map[text])
else:
self.template_name = ""