Workout With Friends Stay fit with a little motivation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Properties
__init__.py
Go to the documentation of this file.
1 from wowf.lib.utils import Storage
2 from wtforms import Form as _Form
3
4
5 ##
6 #
7 # Storage object to pass state to forms for more complex validation.
8 #
9 class State(Storage):
10 pass
11
12
13 ##
14 #
15 # Updated form object, which accepts a state variable to assist in more complex
16 # validation.
17 #
18 class Form(_Form):
19
20 def __init__(self, formdata=None, obj=None, prefix='', state=None, **kwargs):
21 super(Form, self).__init__(formdata, obj, prefix, **kwargs)
22 if not state:
23 state = State()
24 self.state = state
25
26
27 from wowf.forms.challenge import *
28 from wowf.forms.search import *
29 from wowf.forms.user import *
30 from wowf.forms.workout import *
31