def update_project(self, id, project, as_user=None):
        if type(id).__name__ == "int":
            url = "%s/projects/%d.xml" % (self.base, id)
        else:
            url = "%s/projects/%s.xml" % (self.base, id)
        response, content = self._request(url, "PUT", project.to_xml(), impersonate=as_user)
        if response.status == 200:
            return True
        else:
            return False
Performs user authentication check.
dataset/ETHPy150Open zepheira/django-redmine/django_redmine/utils.py/RedmineClient.update_project--crossover with--dataset/ETHPy150Open django-leonardo/django-leonardo/leonardo/decorators.py/require_auth