On supprime "PageStatique"
darcs-hash:20051109160702-d1718-3954db72554177e1934bef6cbaa1d0c5a347a958.gz
This commit is contained in:
parent
07cb1acc40
commit
766aaebbaf
1 changed files with 4 additions and 2 deletions
|
@ -121,6 +121,8 @@ class MoinDump(_util.Script):
|
|||
for pagename in pages:
|
||||
file = wikiutil.quoteWikinameURL(pagename) # we have the same name in URL and FS
|
||||
# On construit le nom de la page avec les liens (peut sans doute mieux faire)
|
||||
originalpagename = pagename
|
||||
pagename = pagename.replace("/PagesStatiques", "")
|
||||
pagenamewithlinks = [u'']
|
||||
for composant in pagename.split("/"):
|
||||
pagenamewithlinks.append(pagenamewithlinks[-1]+'/'+composant)
|
||||
|
@ -129,7 +131,7 @@ class MoinDump(_util.Script):
|
|||
_util.log('Writing "%s"...' % file)
|
||||
try:
|
||||
pagehtml = ''
|
||||
page = Page.Page(request, pagename)
|
||||
page = Page.Page(request, originalpagename)
|
||||
try:
|
||||
request.reset()
|
||||
out = StringIO.StringIO()
|
||||
|
@ -154,7 +156,7 @@ class MoinDump(_util.Script):
|
|||
'pagenamewithlinks': pagenamewithlinks,
|
||||
'pagehtml': pagehtml,
|
||||
'timestamp': timestamp,
|
||||
'wikilink': u"http://wiki.crans.org/%s" % quoteWikinameOriUrl(pagename).encode("UTF-8"),
|
||||
'wikilink': u"http://wiki.crans.org/%s" % quoteWikinameOriUrl(originalpagename).encode("UTF-8"),
|
||||
'theme': request.cfg.theme_default,
|
||||
}).replace("./monobook", ".."))
|
||||
fileout.close()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue