blog.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:Multi_User_Blog 作者: Nshmais 项目源码 文件源码
def initialize(self, *a, **kw):
        """
            This methods gets executed for each page and
            verfies user login status, using oookie information.
        """
        webapp2.RequestHandler.initialize(self, *a, **kw)
        uid = self.read_secure_cookie('user_id')
        self.user = uid and User.by_id(int(uid))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号