comparison MoinMoin/macro/WantedPages.py @ 2042:4fc338f01037

WantedPages: cycle toggle allpages
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 19 May 2007 20:38:05 +0200
parents b06ef2a53efa
children 7ae581d79352
comparison
equal deleted inserted replaced
2041:fa0bec111fdf 2042:4fc338f01037
24 # Control bar - filter the list of pages 24 # Control bar - filter the list of pages
25 # TODO: we should make this a widget and use on all page listing pages 25 # TODO: we should make this a widget and use on all page listing pages
26 label = (_('Include system pages'), _('Exclude system pages'))[allpages] 26 label = (_('Include system pages'), _('Exclude system pages'))[allpages]
27 page = macro.formatter.page 27 page = macro.formatter.page
28 controlbar = macro.formatter.div(1, css_class="controlbar") + \ 28 controlbar = macro.formatter.div(1, css_class="controlbar") + \
29 page.link_to(request, label, querystr={'allpages': '%d' % allpages and '0' or '1'}) + \ 29 page.link_to(request, label, querystr={'allpages': '%s' % (allpages and '0' or '1')}) + \
30 macro.formatter.div(0) 30 macro.formatter.div(0)
31 31
32 # Get page dict readable by current user 32 # Get page dict readable by current user
33 pages = request.rootpage.getPageDict() 33 pages = request.rootpage.getPageDict()
34 34