Esempio n. 1
0
 def get(self, url=None):
     user = users.get_current_user()
     if not url:
         logged_in_user_url = gateway.get_current_user_url(user)
         if logged_in_user_url: self.redirect('/' + logged_in_user_url)
     
     pointset = gateway.get_points_for(url)
     info = dict(current_url=url,
                 user_url=gateway.get_current_user_url(user),
                 user_nick=gateway.get_current_user_nick(url),
                 point_ceiling=settings.hard_point_count_ceiling,
                 empty_spot=True if pointset == None else False)
     template_values = { 'points':pointset if not pointset == None else [],
                         'auth':utils.authdetails('/' + url),
                         'info':info}
                         
     self.respond(template.render(utils.path('templates/index.html'), template_values))
Esempio n. 2
0
 def get(self, url):
     pointset = gateway.get_points_for(url)
     self.respond_json(pointset)
Esempio n. 3
0
 def get(self, url=None):
     pointset = gateway.get_points_for(url)
     self.render('templates/pointlist.html', {'points':pointset})