Workout With Friends
Stay fit with a little motivation
 All Classes Namespaces Files Functions Variables Properties
home.py
Go to the documentation of this file.
1 from pyramid.view import view_config, view_defaults
2 from wowf.views import BaseView
3 
4 
5 @view_defaults(route_name='home', permission='guest', logged_in=False)
7 
8  @view_config(renderer='home.html')
9  def main(self):
10  return dict()
11 
12 
13 @view_defaults(route_name='home', permission='member', logged_in=True)
15 
16  @view_config(renderer='dashboard.html')
17  def main(self):
18  stream = self.request.user.get_challenges(self.settings.min_stream_items)
19  return dict(stream=stream)
20