diff MoinMoin/util/forms.py @ 1975:384555088cab

lots of pep8 fixes
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 11 Feb 2013 04:49:04 +0100
parents 4ac437141bbe
children bb2f526d961c
line wrap: on
line diff
--- a/MoinMoin/util/forms.py	Sun Feb 10 23:54:13 2013 +0100
+++ b/MoinMoin/util/forms.py	Mon Feb 11 04:49:04 2013 +0100
@@ -13,6 +13,7 @@
 
 from MoinMoin.i18n import _, L_, N_
 
+
 def label_filter(tagname, attributes, contents, context, bind):
     """Provide a translated, generated fallback for field labels."""
     if bind is not None and not contents:
@@ -20,6 +21,7 @@
     return contents
 label_filter.tags = set(['label'])
 
+
 def button_filter(tagname, attributes, contents, context, bind):
     """Show translated text in clickable buttons and submits."""
     if bind is None:
@@ -33,6 +35,7 @@
     return contents
 button_filter.tags = set(['input', 'button'])
 
+
 def required_filter(tagname, attributes, contents, context, bind):
     if (bind is not None and not bind.optional):
         attributes[u'class'] = u'required'
@@ -41,6 +44,7 @@
     return contents
 required_filter.tags = set(['input', 'label'])
 
+
 def autofocus_filter(tagname, attributes, contents, context, bind):
     if bind is not None:
         autofocus = bind.properties.get('autofocus')
@@ -49,6 +53,7 @@
     return contents
 autofocus_filter.tags = set(['input', 'textarea', ])
 
+
 def placeholder_filter(tagname, attributes, contents, context, bind):
     if bind is not None:
         placeholder = bind.properties.get('placeholder')
@@ -57,6 +62,7 @@
     return contents
 placeholder_filter.tags = set(['input', 'textarea', ])
 
+
 def error_filter_factory(class_='moin-error'):
     """Returns an HTML generation filter annotating field CSS class on error.