def get(self): if self.currentuser.lastposted == None: self.redirect('/profile') return group = self.currentgroup context = { 'ask_to_rate' : can_vote(self.currentuser, self.currentgroup), 'active_crew': get_active_crew(group), 'dead_crew': get_dead_crew(group), 'suggestions': Suggestion.get_todays(group), 'restaurants': Restaurant.get_for_group(group) } self.render('home', context)
def get(self): context = { 'restaurants': Restaurant.get_for_group(self.currentgroup) } self.render_plain('restaurants', context)