[wiki-lenny] Hack sauvage de RandomPageInclude --- qui manifestement ne passe pas à la version
darcs-hash:20081211173851-bd074-995b67b806e5e010c6d2d705ac95de000a501cfb.gz
This commit is contained in:
parent
4aba28c1a6
commit
4b169a49e9
1 changed files with 3 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue