David Baumgold avatar David Baumgold committed 022b863

Import __all__ lists, so that Flask-WTF can refer to them

Comments (0)

Files changed (3)

wtforms/__init__.py

 from wtforms.form import Form
 from wtforms.validators import ValidationError
 
+from wtforms.fields import __all__ as fields_all
+from wtforms.widgets import __all__ as widgets_all
+__all__ = fields_all + widgets_all
+
 __version__ = '0.6.4dev'

wtforms/fields/__init__.py

 from wtforms.fields.core import *
+from wtforms.fields.core import __all__
 
 # Compatibility imports
 from wtforms.fields.core import Label, Field, _unset_value, SelectFieldBase, Flags

wtforms/widgets/__init__.py

 from wtforms.widgets.core import *
+from wtforms.widgets.core import __all__
 
 # Compatibility imports
 from wtforms.widgets.core import html_params, Input, HTMLString
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.