Ejemplo n.º 1
0
 def read_count(self):
   """Returns the number times this thread has been read.
   
   Returns:
     The number of times this thread has been read.
   """
   return counter.get_count('THREAD_READS:'+str(self.key().id()))
Ejemplo n.º 2
0
 def reply_count(self):
   """Returns the number of replies this thread has.
   
   Return:
     The number of replies this thread has.
   """
   return counter.get_count('THREAD_REPLIES:'+str(self.key().id()))
Ejemplo n.º 3
0
 def post_count(self):
   """Returns the number of posts of this forum.
   
   Returns:
     The number of posts of this forum.
   """
   return counter.get_count('POST_COUNT:'+self.key().id())