changeset 5773:34fb41293eab

fix moin export dump to generate relative URLs (thanks to Emilio Lopes for the patch) Internal links in exported html were incorrectly generated as absolute paths. export dump worked fine with 1.8 but no longer with 1.9.x.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Tue, 29 Mar 2011 09:00:00 +0200
parents f3262beca6b1
children 79632f998d6e
files MoinMoin/script/export/dump.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/script/export/dump.py	Thu Mar 24 17:50:59 2011 +0100
+++ b/MoinMoin/script/export/dump.py	Tue Mar 29 09:00:00 2011 +0200
@@ -151,8 +151,8 @@
         self.init_request()
         request = self.request
 
-        # fix url_prefix_static so we get relative paths in output html
-        request.cfg.url_prefix_static = url_prefix_static
+        # fix script_root so we get relative paths in output html
+        request.script_root = url_prefix_static
 
         # use this user for permissions checks
         request.user = user.User(request, name=self.options.dump_user)