comparison MoinMoin/util/forms.py @ 2589:ee404f81afe9

fix new pep8 errors generated after pep8 is upgraded to 1.5.1
author RogerHaase <haaserd@gmail.com>
date Wed, 02 Apr 2014 14:55:54 -0700
parents eca842df2ec4
children
comparison
equal deleted inserted replaced
2588:16840b339832 2589:ee404f81afe9
26 """Show translated text in clickable buttons and submits.""" 26 """Show translated text in clickable buttons and submits."""
27 if bind is None: 27 if bind is None:
28 return contents 28 return contents
29 if tagname == 'input': 29 if tagname == 'input':
30 if ('value' not in attributes and 30 if ('value' not in attributes and
31 attributes.get('type') in ['submit', 'reset', ]): 31 attributes.get('type') in ['submit', 'reset', ]):
32 attributes['value'] = _(bind.default_value) 32 attributes['value'] = _(bind.default_value)
33 elif tagname == 'button' and not contents: 33 elif tagname == 'button' and not contents:
34 contents = _(bind.default_value) 34 contents = _(bind.default_value)
35 return contents 35 return contents
36 button_filter.tags = set(['input', 'button']) 36 button_filter.tags = set(['input', 'button'])