Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/d/y/dycapo-HEAD/rest/wrappers/location.py   dycapo(Download)
        result = server.common.setPosition(user, location)
        if result.code != server.models.Response.BAD_REQUEST and \
           result.code != server.models.Response.FORBIDDEN and \
           result.code != server.models.Response.NOT_FOUND:
            result.value.href = rest.utils.get_href(request, "location_person_handler", [user.username])

src/d/y/dycapo-HEAD/rest/wrappers/participation.py   dycapo(Download)
            if status_code < person_participation.get_status_code():
                result = server.models.Response(
                        server.models.Response.FORBIDDEN,
                        'Message',
                         'Can not fall back from '+str(data['status'])+'to ' +str(status)+ 'status at this point')
            else:
                result = server.models.Response(
                        server.models.Response.FORBIDDEN,
                        'Message',
                         'Can not fall back from '+str(data['status'])+'to ' +str(status)+ 'status at this point')