comparison MoinMoin/macro/__init__.py @ 1449:e219092e1a0d

a few small fixes to get misc things working with xapian
author Franz Pletz <fpletz AT franz-pletz DOT org>
date Mon, 21 Aug 2006 19:03:20 +0200
parents b65614f8a393
children a4f0632414da
comparison
equal deleted inserted replaced
1448:4012f0814295 1449:e219092e1a0d
278 return '<span class="error">%s</span>' % err 278 return '<span class="error">%s</span>' % err
279 279
280 # Return a title search for needle, sorted by name. 280 # Return a title search for needle, sorted by name.
281 # XXX: what's with literal? 281 # XXX: what's with literal?
282 results = search.searchPages(self.request, needle, 282 results = search.searchPages(self.request, needle,
283 titlesearch=1, case=case) 283 titlesearch=1, case=case, sort='page_name')
284 results.sortByPagename()
285 return results.pageList(self.request, self.formatter, paging=False) 284 return results.pageList(self.request, self.formatter, paging=False)
286 285
287 def _macro_InterWiki(self, args): 286 def _macro_InterWiki(self, args):
288 from StringIO import StringIO 287 from StringIO import StringIO
289 interwiki_list = wikiutil.load_wikimap(self.request) 288 interwiki_list = wikiutil.load_wikimap(self.request)