[wiki/macro] On accélère AllPagesWithACL en ne triant la liste des pages qu'après épuration
This commit is contained in:
parent
475981896f
commit
f4a322bc4d
1 changed files with 5 additions and 4 deletions
|
@ -38,14 +38,15 @@ def macro_AllPagesWithACL(macro, args):
|
||||||
|
|
||||||
for pagename in pages:
|
for pagename in pages:
|
||||||
if Page(macro.request,pagename).isStandardPage() or (args != None and "IncludeSystemPages" in args):
|
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>"
|
html += "<table>"
|
||||||
all1 = sorted(all.items())
|
all1 = sorted(all.items())
|
||||||
for pg, ac in all1:
|
for pg, ac in all1:
|
||||||
if ac != "not defined":
|
html += "<tr><td>%s</td>" % pg
|
||||||
html += "<tr><td>%s</td>" % pg
|
html += "<td>%s</td></tr>" % ac
|
||||||
html += "<td>%s</td></tr>" % ac
|
|
||||||
html += "</table>"
|
html += "</table>"
|
||||||
|
|
||||||
return macro.formatter.rawHTML(html)
|
return macro.formatter.rawHTML(html)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue