class BaseHandler(tornado.web.RequestHandler): @property def rep(self): return self.application.rep def get_current_user(self): user_name=self.get_secure_cookie("user") if self.application.user.has_key(user_name): return user_name return None
class BaseHandler(tornado.web.RequestHandler): @property def rep(self): return self.application.rep def get_current_user(self): user_name=self.get_secure_cookie("user") if self.application.user.has_key(user_name): return user_name return None