comparison MoinMoin/macro/__init__.py @ 2226:cff573edd028

fixed wrong link generation for WordIndex/TitleIndex
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 27 May 2007 02:54:39 +0200
parents 7ae581d79352
children 01f05e74aa9c
comparison
equal deleted inserted replaced
2225:9b7c60060be1 2226:cff573edd028
239 links = [letter_link(letter) for letter in index_letters] 239 links = [letter_link(letter) for letter in index_letters]
240 return ' | '.join(links) 240 return ' | '.join(links)
241 241
242 page = fmt.page 242 page = fmt.page
243 allpages_txt = (_('Include system pages'), _('Exclude system pages'))[allpages] 243 allpages_txt = (_('Include system pages'), _('Exclude system pages'))[allpages]
244 allpages_url = page.url(request, querystr={'allpages': allpages and '0' or '1'}) 244 allpages_url = page.url(request, querystr={'allpages': allpages and '0' or '1'}, relative=False)
245 245
246 output = [fmt.paragraph(1), _make_index_key(index_letters), fmt.linebreak(0), 246 output = [fmt.paragraph(1), _make_index_key(index_letters), fmt.linebreak(0),
247 fmt.url(1, allpages_url), fmt.text(allpages_txt), fmt.url(0), fmt.paragraph(0)] + output 247 fmt.url(1, allpages_url), fmt.text(allpages_txt), fmt.url(0), fmt.paragraph(0)] + output
248 return u''.join(output) 248 return u''.join(output)
249 249