redis_session.py 文件源码

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

项目:spc 作者: whbrewer 项目源码 文件源码
def __call__(self, record_id, unique_key=None):
        # Support DAL shortcut query: table(record_id)

        q = self.id  # This will call the __getattr__ below
                     # returning a MockQuery

        # Instructs MockQuery, to behave as db(table.id == record_id)
        q.op = 'eq'
        q.value = record_id
        q.unique_key = unique_key

        row = q.select()
        return row[0] if row else Storage()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号