diff 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
line wrap: on
line diff
--- a/MoinMoin/themes/__init__.py	Sun Jan 08 20:55:32 2012 +0100
+++ b/MoinMoin/themes/__init__.py	Sun Jan 08 20:15:24 2012 +1000
@@ -24,6 +24,7 @@
 from MoinMoin.i18n import _, L_, N_
 from MoinMoin import wikiutil, user
 from MoinMoin.config import USERID, ADDRESS, HOSTNAME
+from MoinMoin.search import SearchForm
 from MoinMoin.util.interwiki import split_interwiki, getInterwikiHome, is_local_wiki, is_known_wiki, url_for_item
 from MoinMoin.util.crypto import cache_key
 from MoinMoin.util.forms import make_generator
@@ -432,5 +433,6 @@
                             'get_editor_info': lambda meta: get_editor_info(meta),
                             'utctimestamp': lambda dt: utctimestamp(dt),
                             'gen': make_generator(),
+                            'search_form': SearchForm.from_defaults(),
                             })