Did I find the right examples for you? yes no

All Samples(112)  |  Call(110)  |  Derive(0)  |  Import(2)
Create a partial version of the Mapper with the designated
options set

This results in a :class:`routes.mapper.SubMapper` object.

If keyword arguments provided to this method also exist in the
keyword arguments provided to the submapper, their values will
be merged with the saved options going first.

In addition to :class:`routes.route.Route` arguments, submapper(more...)

src/n/e/neutron-HEAD/neutron/api/extensions.py   neutron(Download)
                conditions = dict(method=[method])
                path = "/%s/%s" % (resource.collection, action)
                with mapper.submapper(controller=resource.controller,
                                      action=action,
                                      path_prefix=path_prefix,

src/t/u/turbulenz_local-1.1.4/turbulenz_local/routing.py   turbulenz_local(Download)
 
    # application API for local only!
    with router.submapper(controller='localv1/games', path_prefix='/local/v1/games') as m:
        m.connect('games-list', '/list', action='list')
        m.connect('games-new', '/new', action='new')
        m.connect('games-details', '/details/{slug}', action='details')
        m.connect('games-sessions', '/sessions', action='sessions')
 
    with router.submapper(controller='localv1/edit', path_prefix='/local/v1/edit/{slug}') as m:
        m.connect('edit-directory-options', '/directory-options', action='directory_options')
 
    with router.submapper(controller='localv1/play', path_prefix='/local/v1/play/{slug}') as m:
        m.connect('play-versions', '', action='versions')
 
    with router.submapper(controller='localv1/list', path_prefix='/local/v1/list/{slug}') as m:
        m.connect('list-files', '/files/{path:.*}', action='files')
 
    with router.submapper(controller='localv1/metrics', path_prefix='/local/v1/metrics/{slug}') as m:
        m.connect('metrics-overview', '', action='overview')
        m.connect('metrics-stop-recording', '/stop-recording', action='stop_recording')

src/a/n/annotator-store-py-HEAD/annotator/store.py   annotator-store-py(Download)
 
        with self.mapper.submapper(
            action='cors_preflight',
            path_prefix=mount_point,
            conditions=dict(method=["OPTIONS"])

src/t/u/turbulenz_local-HEAD/turbulenz_local/routing.py   turbulenz_local(Download)
 
    # application API for local only!
    with router.submapper(controller='localv1/games', path_prefix='/local/v1/games') as m:
        m.connect('games-list', '/list', action='list')
        m.connect('games-new', '/new', action='new')
        m.connect('games-details', '/details/{slug}', action='details')
        m.connect('games-sessions', '/sessions', action='sessions')
 
    with router.submapper(controller='localv1/edit', path_prefix='/local/v1/edit/{slug}') as m:
        m.connect('edit-directory-options', '/directory-options', action='directory_options')
 
    with router.submapper(controller='localv1/play', path_prefix='/local/v1/play/{slug}') as m:
        m.connect('play-versions', '', action='versions')
 
    with router.submapper(controller='localv1/list', path_prefix='/local/v1/list/{slug}') as m:
        m.connect('list-files', '/files/{path:.*}', action='files')
 
    with router.submapper(controller='localv1/metrics', path_prefix='/local/v1/metrics/{slug}') as m:
        m.connect('metrics-overview', '', action='overview')
        m.connect('metrics-stop-recording', '/stop-recording', action='stop_recording')

src/r/h/RhodeCode-2.2.5/rhodecode/config/routing.py   RhodeCode(Download)
 
    #ADMIN REPOSITORY ROUTES
    with rmap.submapper(path_prefix=ADMIN_PREFIX,
                        controller='admin/repos') as m:
        m.connect("repos", "/repos",
 
    #ADMIN REPOSITORY GROUPS ROUTES
    with rmap.submapper(path_prefix=ADMIN_PREFIX,
                        controller='admin/repo_groups') as m:
        m.connect("repos_groups", "/repo_groups",
 
    #ADMIN USER ROUTES
    with rmap.submapper(path_prefix=ADMIN_PREFIX,
                        controller='admin/users') as m:
        m.connect("users", "/users",
 
    #ADMIN USER GROUPS REST ROUTES
    with rmap.submapper(path_prefix=ADMIN_PREFIX,
                        controller='admin/user_groups') as m:
        m.connect("users_groups", "/user_groups",
 
    #ADMIN PERMISSIONS ROUTES
    with rmap.submapper(path_prefix=ADMIN_PREFIX,
                        controller='admin/permissions') as m:
        m.connect("admin_permissions", "/permissions",

src/b/a/baruwa-2.0.1/baruwa/config/routing.py   baruwa(Download)
 
    #accounts
    with urlmap.submapper(path_prefix="/accounts",
        controller="accounts") as submap:
        submap.connect("accounts-login",
                action='setnum')
    #domains
    with urlmap.submapper(path_prefix="/domains",
        controller="domains") as submap:
        submap.connect('domain-detail',
                action='setnum')
    #messages
    with urlmap.submapper(path_prefix="/messages",
        controller="messages") as submap:
        submap.connect('message-detail',
                action='setnum')
    #reports
    with urlmap.submapper(path_prefix="/reports",
        controller="reports") as submap:
        submap.connect('reports-display',
                action='add_filters')
    #settings
    with urlmap.submapper(path_prefix="/settings",
        controller="settings") as submap:
        submap.connect('settings-addserver',

src/b/a/baruwa2-HEAD/baruwa/config/routing.py   baruwa2(Download)
 
    #accounts
    with urlmap.submapper(path_prefix="/accounts",
        controller="accounts") as submap:
        submap.connect("accounts-login",
                action='setnum')
    #domains
    with urlmap.submapper(path_prefix="/domains",
        controller="domains") as submap:
        submap.connect('domain-detail',
                action='setnum')
    #messages
    with urlmap.submapper(path_prefix="/messages",
        controller="messages") as submap:
        submap.connect('message-detail',
                action='setnum')
    #reports
    with urlmap.submapper(path_prefix="/reports",
        controller="reports") as submap:
        submap.connect('reports-display',
                action='add_filters')
    #settings
    with urlmap.submapper(path_prefix="/settings",
        controller="settings") as submap:
        submap.connect('settings-addserver',

src/h/e/heat-HEAD/heat/api/openstack/v1/__init__.py   heat(Download)
        # Stacks
        stacks_resource = stacks.create_resource(conf)
        with mapper.submapper(controller=stacks_resource,
                              path_prefix="/{tenant_id}") as stack_mapper:
            # Template handling
        resources_resource = resources.create_resource(conf)
        stack_path = "/{tenant_id}/stacks/{stack_name}/{stack_id}"
        with mapper.submapper(controller=resources_resource,
                              path_prefix=stack_path) as res_mapper:
 
        # Events
        events_resource = events.create_resource(conf)
        with mapper.submapper(controller=events_resource,
                              path_prefix=stack_path) as ev_mapper:
 
        # Actions
        actions_resource = actions.create_resource(conf)
        with mapper.submapper(controller=actions_resource,
                              path_prefix=stack_path) as ac_mapper:
 
        # Info
        info_resource = build_info.create_resource(conf)
        with mapper.submapper(controller=info_resource,
                              path_prefix="/{tenant_id}") as info_mapper:
 

src/o/p/openstack-lbaas-HEAD/balancer/api/v1/router.py   openstack-lbaas(Download)
    def __init__(self, conf, **local_conf):
        self.conf = conf
        mapper = routes.Mapper()
 
        tenant_mapper = mapper.submapper(path_prefix="/{tenant_id}")

src/z/t/ztpserver-HEAD/ztpserver/controller.py   ztpserver(Download)
 
        log.debug('Creating submapper with kwargs: %s', kwargs)
        with mapper.submapper(**kwargs) as router_mapper:
 
            # configure /bootstrap