def add_papyrus_routes(self, route_name_prefix, base_url):
    """ A helper method that adds routes to view callables that, together,
    implement the MapFish HTTP interface.

    Example::

        import papyrus
        config.include(papyrus)
        config.add_papyrus_routes('spots', '/spots')
        config.scan()

    Arguments:

    ``route_name_prefix' The prefix used for the route names
    passed to ``config.add_route``.

    ``base_url`` The web service's base URL, e.g. ``/spots``. No
    trailing slash!
    """
    route_name = route_name_prefix + '_read_many'
    self.add_route(route_name, base_url, request_method='GET')
    route_name = route_name_prefix + '_read_one'
    self.add_route(route_name, base_url + '/{id}', request_method='GET')
    route_name = route_name_prefix + '_count'
    self.add_route(route_name, base_url + '/count', request_method='GET')
    route_name = route_name_prefix + '_create'
    self.add_route(route_name, base_url, request_method='POST')
    route_name = route_name_prefix + '_update'
    self.add_route(route_name, base_url + '/{id}', request_method='PUT')
    route_name = route_name_prefix + '_delete'
    self.add_route(route_name, base_url + '/{id}', request_method='DELETE')
def add_papyrus_routes ( self , route_name_prefix , base_url ) : route_name = route_name_prefix + '_read_many' self . add_route ( route_name , base_url , request_method = 'GET' ) route_name = route_name_prefix + '_read_one' self . add_route ( route_name , base_url + '/{id}' , request_method = 'GET' ) route_name = route_name_prefix + '_count' self . add_route ( route_name , base_url + '/count' , request_method = 'GET' ) route_name = route_name_prefix + '_create' self . add_route ( route_name , base_url , request_method = 'POST' ) route_name = route_name_prefix + '_update' self . add_route ( route_name , base_url + '/{id}' , request_method = 'PUT' ) route_name = route_name_prefix + '_delete' self . add_route ( route_name , base_url + '/{id}' , request_method = 'DELETE' )
A helper method that adds routes to view callables that, together,
    implement the MapFish HTTP interface.

    Example::

        import papyrus
        config.include(papyrus)
        config.add_papyrus_routes('spots', '/spots')
        config.scan()

    Arguments:

    ``route_name_prefix' The prefix used for the route names
    passed to ``config.add_route``.

    ``base_url`` The web service's base URL, e.g. ``/spots``. No
    trailing slash!