Exemplo n.º 1
0
  def get(self):
	count = models.get_unmoderated_count()
	messages = models.get_unmoderated_messages(500)
	template_values = {
		'messages' : messages,
		'count' : count,
	}
	helpers.render_admin_template(self, "adminviews/backlog.html", template_values)
Exemplo n.º 2
0
  def get(self):
	messages = models.get_unmoderated_messages(5)
	messageset = ""
	for message in messages:
		messageset = messageset + "," + str(message.messageid)
	if len(messageset) == 0:
		messageset = False
	else:
		messageset = messageset[1:len(messageset)]
	template_values = {
		'messages' : messages,
		'messageset' : messageset,
	}
	helpers.render_admin_template(self, "adminviews/home.html", template_values)