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.config import settings
2 from wowf.lib import consts
3 from wowf.lib.pagination import Page
4
5
6 def get_challenge_stream(user):
7 return Page(user.get_challenges,
8 user.count_challenges,
9 settings.max_stream_items)
10
11
12 def get_buddies_stream(user):
13 return Page(user.get_buddies,
14 user.count_buddies,
15 settings.max_stream_items)
16
17
18 def get_unconfirmed_notification_stream(user):
19 return Page(user.get_unconfirmed_notifications,
20 user.count_unconfirmed_notifications,
21 settings.max_stream_items)
22
23
24 def get_all_notification_stream(user):
25 return Page(user.get_all_notifications,
26 user.count_all_notifications,
27 settings.max_stream_items)
28
29
30 class BaseView(object):
31
32 def __init__(self, request):
33 self.request = request
34 self.settings = settings
35 self.consts = consts
36