Commit f4a322bc authored by Aurore Mo-Ma's avatar Aurore Mo-Ma

[wiki/macro] On accélère AllPagesWithACL en ne triant la liste des pages qu'après épuration

parent 47598189
......@@ -38,14 +38,15 @@ def macro_AllPagesWithACL(macro, args):
for pagename in pages:
if Page(macro.request,pagename).isStandardPage() or (args != None and "IncludeSystemPages" in args):
all[Page(macro.request, pagename).link_to(macro.request)] = getAcl(macro.request, pagename)
ac = getAcl(macro.request, pagename)
if ac != "not defined":
all[Page(macro.request, pagename).link_to(macro.request)] = ac
html += "<table>"
all1 = sorted(all.items())
for pg, ac in all1:
if ac != "not defined":
html += "<tr><td>%s</td>" % pg
html += "<td>%s</td></tr>" % ac
html += "<tr><td>%s</td>" % pg
html += "<td>%s</td></tr>" % ac
html += "</table>"
return macro.formatter.rawHTML(html)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment