changeset 3065:89f21a66d5cb

moin export dump: added kw args to _attachment(), fixes exception when dumping pages (ported from 1.6)
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 21 Feb 2008 21:39:25 +0100
parents af5872a8f022
children db0a4f4b30d3
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 Feb 21 21:28:02 2008 +0100
+++ b/MoinMoin/script/export/dump.py	Thu Feb 21 21:39:25 2008 +0100
@@ -53,7 +53,7 @@
 '''
 
 
-def _attachment(request, pagename, filename, outputdir):
+def _attachment(request, pagename, filename, outputdir, **kw):
     filename = filename.encode(config.charset)
     source_dir = AttachFile.getAttachDir(request, pagename)
     source_file = os.path.join(source_dir, filename)
@@ -134,7 +134,7 @@
 
         wikiutil.quoteWikinameURL = lambda pagename, qfn=wikiutil.quoteWikinameFS: (qfn(pagename) + HTML_SUFFIX)
 
-        AttachFile.getAttachUrl = lambda pagename, filename, request: (_attachment(request, pagename, filename, outputdir))
+        AttachFile.getAttachUrl = lambda pagename, filename, request, **kw: _attachment(request, pagename, filename, outputdir, **kw)
 
         errfile = os.path.join(outputdir, 'error.log')
         errlog = open(errfile, 'w')