comparison MoinMoin/macro/FullSearch.py @ 1868:64507f46beb2

reduce usage of has_key()
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 10 Mar 2007 22:01:07 +0100
parents b180f047d918
children bb2e053067fb
comparison
equal deleted inserted replaced
1867:8166b37db555 1868:64507f46beb2
40 @param type: search box type: 'titlesearch' or 'fullsearch' 40 @param type: search box type: 'titlesearch' or 'fullsearch'
41 @rtype: unicode 41 @rtype: unicode
42 @return: search box html fragment 42 @return: search box html fragment
43 """ 43 """
44 _ = macro._ 44 _ = macro._
45 if macro.form.has_key('value'): 45 if 'value' in macro.form:
46 default = wikiutil.escape(macro.form["value"][0], quote=1) 46 default = wikiutil.escape(macro.form["value"][0], quote=1)
47 else: 47 else:
48 default = '' 48 default = ''
49 49
50 # Title search settings 50 # Title search settings