fnetpepAPI.py 文件源码

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

项目:FileNetPEAPI 作者: wandss 项目源码 文件源码
def lockTask(self, task):

        """Receives a task dictionary, obtainned with getTasks() method,
        and locks the task so other users can't access this task at same time.
        Usage:
        >>> pe.lockTask(task)
        """

        locked = requests.get(self.client.baseurl
                              +task['stepElement'],
                              auth = self.client.cred)
        eTag = locked.headers['ETag']
        locked = requests.put(self.client.baseurl
                              + task['stepElement'],
                              auth = self.client.cred,
                              params={'action':'lock',
                                      'If-Match':eTag}
                              )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号