(self, resource_slug)
return requests.put(
            url, data=json.dumps(data), auth=self._auth, headers=headers,
        )
lock a resource so that it can't be translated/reviewed anymore.

        :param resource_slug:
lock a resource so that it can't be translated/reviewed anymore.
lock a resource so that it can t be translated / reviewed anymore .
def lock_resource(self, resource_slug):
        """
        lock a resource so that it can't be translated/reviewed anymore.

        :param resource_slug:
        """
        url = "https://www.transifex.com/api/2/project/{}/resource/{}".format(
            self.project, resource_slug)
        data = {
            'accept_translations': False
        }
        headers = {'content-type': 'application/json'}
        return requests.put(
            url, data=json.dumps(data), auth=self._auth, headers=headers,
        )
def lock_resource ( self , resource_slug ) : url = "https://www.transifex.com/api/2/project/{}/resource/{}" . format ( self . project , resource_slug ) data = { 'accept_translations' : False } headers = { 'content-type' : 'application/json' } return requests . put ( url , data = json . dumps ( data ) , auth = self . _auth , headers = headers , )