Exemplo n.º 1
0
 def _GetAsked(self, user):
   """Returns the user's outstanding asked question, if any."""
   q = Question.all()
   q.filter("asker =", user)
   q.filter("answer =", None)
   return q.get()
Exemplo n.º 2
0
 def _GetAnswering(self, user):
   """Returns the question the user is answering, if any."""
   q = Question.all()
   q.filter("assignees =", user)
   q.filter("answer =", None)
   return q.get()
Exemplo n.º 3
0
 def get(self):
   q = Question.all().order('-answered').filter('answered >', None)
   template_values = {
     'questions': q.fetch(20),
   }
   self.Render("latest.html", template_values)