From 4b169a49e91d72f64e787ab1a3c00e0becf95c0f Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Thu, 11 Dec 2008 18:38:51 +0100 Subject: [PATCH] =?UTF-8?q?[wiki-lenny]=20Hack=20sauvage=20de=20RandomPage?= =?UTF-8?q?Include=20---=20qui=20manifestement=20ne=20passe=20pas=20=C3=A0?= =?UTF-8?q?=20la=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit darcs-hash:20081211173851-bd074-995b67b806e5e010c6d2d705ac95de000a501cfb.gz --- wiki-lenny/local/macro/RandomPageInclude.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wiki-lenny/local/macro/RandomPageInclude.py b/wiki-lenny/local/macro/RandomPageInclude.py index dc4844fb..c885648c 100644 --- a/wiki-lenny/local/macro/RandomPageInclude.py +++ b/wiki-lenny/local/macro/RandomPageInclude.py @@ -56,7 +56,7 @@ def execute(macro, text, args_re=re.compile(_args_re_pattern), title_re=re.compi # Search the pages and return the results query = search.QueryParser(regex=1).parse_query(args.group('name')) results = search.searchPages(request, query) - results.sortByPagename() + #results.sortByPagename() pagelist = [results.hits[qnumber].page_name] # prepare including page @@ -190,8 +190,8 @@ def execute(macro, text, args_re=re.compile(_args_re_pattern), title_re=re.compi strfile = StringIO.StringIO() request.redirect(strfile) try: - cid = request.makeUniqueID("Include_%s" % wikiutil.quoteWikinameFS(inc_page.page_name)) - inc_page.send_page(request, content_only=1, content_id=cid) + #cid = request.makeUniqueID("Include_%s" % wikiutil.quoteWikinameFS(inc_page.page_name)) + inc_page.send_page(content_only=1) #, content_id=cid) result.append(strfile.getvalue()) finally: request.redirect()