changeset 602:24f37913f1ef

moin dump: better a fixed logo.png than a broken url
author tw@waldmann-edv.de
date Mon, 24 Apr 2006 21:41:30 +0200
parents 4bbd2206f75d
children da3a8a125fdb c96423da9e21
files MoinMoin/script/export/dump.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/export/dump.py	Mon Apr 24 21:04:16 2006 +0200
+++ b/MoinMoin/script/export/dump.py	Mon Apr 24 21:41:30 2006 +0200
@@ -19,6 +19,7 @@
 from MoinMoin.action import AttachFile
 
 url_prefix = "."
+logo_html = '<img src="logo.png">'
 HTML_SUFFIX = ".html"
 
 page_template = u'''<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
@@ -109,7 +110,6 @@
         request = self.request
 
         # fix url_prefix so we get relative paths in output html
-        original_url_prefix = request.cfg.url_prefix
         request.cfg.url_prefix = url_prefix
 
         if self.options.page:
@@ -154,7 +154,6 @@
                     import traceback
                     traceback.print_exc(None, errlog)
             finally:
-                logo_html = re.sub(original_url_prefix + "/?", "", request.cfg.logo_string)
                 timestamp = time.strftime("%Y-%m-%d %H:%M")
                 filepath = os.path.join(outputdir, file)
                 fileout = codecs.open(filepath, 'w', config.charset)