Exemple #1
0
	def get(self):
		query = Story.all()
		query.order("-rating")

		template_values = {
		'query': query,
		'genre': "All"
		}          

		template = JINJA_ENVIRONMENT.get_template('storylist.html')
		self.response.write(template.render(template_values))
Exemple #2
0
	def get(self):
		genre = "Romance"
		query = Story.all()
		query.filter("genre = ", genre)
		query.order("-rating")

		template_values = {
		'query': query,
		'genre': genre
		}          

		template = JINJA_ENVIRONMENT.get_template('storylist.html')
		self.response.write(template.render(template_values))