def author_name(self): return User._by_id(self.author.id()).name
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))
def author_name(self): return User._by_id(self.comment_author.id()).name