treeitem.py 文件源码

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

项目:zing 作者: evernote 项目源码 文件源码
def unregister_all_dirty(self, decrement=1):
        """Unregister current TreeItem and all parent paths as dirty
        (should be called from RQ job procedure after cache is updated)
        """
        r_con = get_connection()
        job = get_current_job()
        for p in self.all_pootle_paths():
            if job:
                logger.debug('UNREGISTER %s (-%s) where job_id=%s',
                             p, decrement, job.id)
            else:
                logger.debug('UNREGISTER %s (-%s)', p, decrement)
            r_con.zincrby(POOTLE_DIRTY_TREEITEMS, p, 0 - decrement)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号