comparison MoinMoin/macro/__init__.py @ 3234:a739558ca3dc

Page.url() default changed to relative=False
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 10 Mar 2008 00:21:21 +0100
parents a7bf8ff3f517
children e06e15e90ba7
comparison
equal deleted inserted replaced
3233:5e120e903ad5 3234:a739558ca3dc
273 links = [letter_link(letter) for letter in index_letters] 273 links = [letter_link(letter) for letter in index_letters]
274 return ' | '.join(links) 274 return ' | '.join(links)
275 275
276 page = fmt.page 276 page = fmt.page
277 allpages_txt = (_('Include system pages'), _('Exclude system pages'))[allpages] 277 allpages_txt = (_('Include system pages'), _('Exclude system pages'))[allpages]
278 allpages_url = page.url(request, querystr={'allpages': allpages and '0' or '1'}, relative=False) 278 allpages_url = page.url(request, querystr={'allpages': allpages and '0' or '1'})
279 279
280 output = [fmt.paragraph(1), _make_index_key(index_letters), fmt.linebreak(0), 280 output = [fmt.paragraph(1), _make_index_key(index_letters), fmt.linebreak(0),
281 fmt.url(1, allpages_url), fmt.text(allpages_txt), fmt.url(0), fmt.paragraph(0)] + output 281 fmt.url(1, allpages_url), fmt.text(allpages_txt), fmt.url(0), fmt.paragraph(0)] + output
282 return u''.join(output) 282 return u''.join(output)
283 283