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)
            return piston.utils.rc.NOT_FOUND
        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:

src/d/y/dycapo-HEAD/rest/wrappers/participation.py   dycapo(Download)
            else:
                result = server.models.Response(
                        server.models.Response.BAD_REQUEST,
                        'Message',
                         {'status': [u'This field is required and its value must be request.']})
        except KeyError, e:
            result = server.models.Response(
                    server.models.Response.BAD_REQUEST,
                    'Message',
                     e)
        except KeyError, e:
            result = server.models.Response(
                    server.models.Response.BAD_REQUEST,
                    'Message',
                     e)
        except Exception, e:
            result = server.models.Response(
                    server.models.Response.BAD_REQUEST,
                    'Message',
                     e)