Пример #1
0
 def author_name(self):
     return User._by_id(self.author.id()).name
Пример #2
0
 def initialize(self, *a, **kw):
     webapp2.RequestHandler.initialize(self, *a, **kw)
     uid = self.read_secure_cookie('user_id')
     self.user = uid and User._by_id(int(uid))
Пример #3
0
 def author_name(self):
     return User._by_id(self.comment_author.id()).name