示例#1
0
	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)
示例#2
0
	def get(self):
		context = { 'suggestions': Suggestion.get_todays(self.currentgroup) }
		self.render('suggestions', context)