comparison MoinMoin/themes/__init__.py @ 1227:18cb4213fc4d

Always show search box in layout.html
author Sam Toyer <samATqxcvDOTnet>
date Sun, 08 Jan 2012 20:15:24 +1000
parents 5421be737643
children 20625402725c 2c58cbcfeabe
comparison
equal deleted inserted replaced
1223:e3df544da406 1227:18cb4213fc4d
22 logging = log.getLogger(__name__) 22 logging = log.getLogger(__name__)
23 23
24 from MoinMoin.i18n import _, L_, N_ 24 from MoinMoin.i18n import _, L_, N_
25 from MoinMoin import wikiutil, user 25 from MoinMoin import wikiutil, user
26 from MoinMoin.config import USERID, ADDRESS, HOSTNAME 26 from MoinMoin.config import USERID, ADDRESS, HOSTNAME
27 from MoinMoin.search import SearchForm
27 from MoinMoin.util.interwiki import split_interwiki, getInterwikiHome, is_local_wiki, is_known_wiki, url_for_item 28 from MoinMoin.util.interwiki import split_interwiki, getInterwikiHome, is_local_wiki, is_known_wiki, url_for_item
28 from MoinMoin.util.crypto import cache_key 29 from MoinMoin.util.crypto import cache_key
29 from MoinMoin.util.forms import make_generator 30 from MoinMoin.util.forms import make_generator
30 31
31 32
430 'item_name': 'handlers need to give it', 431 'item_name': 'handlers need to give it',
431 'url_for_item': url_for_item, 432 'url_for_item': url_for_item,
432 'get_editor_info': lambda meta: get_editor_info(meta), 433 'get_editor_info': lambda meta: get_editor_info(meta),
433 'utctimestamp': lambda dt: utctimestamp(dt), 434 'utctimestamp': lambda dt: utctimestamp(dt),
434 'gen': make_generator(), 435 'gen': make_generator(),
436 'search_form': SearchForm.from_defaults(),
435 }) 437 })
436 438