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
wowf
forms
search.py
Go to the documentation of this file.
1
from
__future__
import
unicode_literals
2
from
wowf.forms
import
Form
3
from
wowf.lib.pagination
import
Page
4
from
wowf.models
import
User
5
from
wtforms.fields
import
TextField
6
7
8
class
SearchForm
(
Form
):
9
10
q = TextField(
'Search'
)
11
12
13
class
SearchUserForm
(
SearchForm
):
14
15
def
search
(self, limit=50):
16
return
Page
(
17
User.search, User.count_search_results, limit, terms=self.q.data)
18
Generated on Sat Dec 15 2012 14:59:08 for Workout With Friends by
1.8.1.2