Ajout d'un lien pour l'edition du wiki
darcs-hash:20050905081240-d1718-b48e16d93f244b4edcb32dc767f208b2ecba84cb.gz
This commit is contained in:
parent
b2264734c3
commit
3abbdae342
1 changed files with 3 additions and 1 deletions
|
@ -54,7 +54,7 @@ contient donc les infos pour configurer correctement votre connexion.
|
||||||
%(pagehtml)s
|
%(pagehtml)s
|
||||||
|
|
||||||
<p class="creation">
|
<p class="creation">
|
||||||
Cette page a été extraite du wiki le %(timestamp)s.
|
Cette page a été extraite du wiki le %(timestamp)s. Vous pouvez l'<a href="%(editlink)s">éditer</a>.
|
||||||
</p>
|
</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -111,6 +111,7 @@ class MoinDump(_util.Script):
|
||||||
|
|
||||||
pages.sort()
|
pages.sort()
|
||||||
|
|
||||||
|
quoteWikinameOriUrl = wikiutil.quoteWikinameURL
|
||||||
wikiutil.quoteWikinameURL = lambda pagename, qfn=wikiutil.quoteWikinameFS: (qfn(pagename) + HTML_SUFFIX)
|
wikiutil.quoteWikinameURL = lambda pagename, qfn=wikiutil.quoteWikinameFS: (qfn(pagename) + HTML_SUFFIX)
|
||||||
|
|
||||||
errfile = os.path.join(outputdir, 'error.log')
|
errfile = os.path.join(outputdir, 'error.log')
|
||||||
|
@ -153,6 +154,7 @@ class MoinDump(_util.Script):
|
||||||
'pagenamewithlinks': pagenamewithlinks,
|
'pagenamewithlinks': pagenamewithlinks,
|
||||||
'pagehtml': pagehtml,
|
'pagehtml': pagehtml,
|
||||||
'timestamp': timestamp,
|
'timestamp': timestamp,
|
||||||
|
'editlink': u"http://wiki.crans.org/%s?action=edit" % quoteWikinameOriUrl(pagename).encode("UTF-8"),
|
||||||
'theme': request.cfg.theme_default,
|
'theme': request.cfg.theme_default,
|
||||||
}).replace("./monobook", ".."))
|
}).replace("./monobook", ".."))
|
||||||
fileout.close()
|
fileout.close()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue