Did I find the right examples for you? yes no

All Samples(22)  |  Call(22)  |  Derive(0)  |  Import(0)
Atomically creates regular expressions for all connected
routes

src/w/s/WSGIProfile-0.1dev/wsgiprofile/middleware.py   WSGIProfile(Download)
        mapper.connect('calls', '_profile/calls', controller='calls')
        mapper.connect('static', '_profile/static/*path_info', controller='static')
        mapper.create_regs(['calls', 'static'])
        self.mapper = mapper
 

src/c/o/Colubrid-0.10/colubrid/application.py   Colubrid(Download)
                kwargs.update(m[3])
            mapper.connect(name, m[0], controller=internal, **kwargs)
        mapper.create_regs(controllers.keys())
        result._routes_mapper = mapper
        result._routes_controllers = controllers

src/s/n/snake-guice-HEAD/snakeguice/extras/snakeweb.py   snake-guice(Download)
 
        self.configure(self.routes_binder)
        self._mapper.create_regs([])
 
    def configure(self, routes_binder):

src/p/o/powerline-0.2.4/powerline/web.py   powerline(Download)
				attr.exposed = False
 
		self.mapper.create_regs()
 
	@cherrypy.expose

src/r/o/Routes-2.0/tests/test_functional/test_middleware.py   Routes(Download)
def test_basic():
    map = Mapper(explicit=False)
    map.minimization = True
    map.connect(':controller/:action/:id')
    map.create_regs(['content'])
    map.connect('myapp/*path_info', controller='myapp')
    map.connect('project/*path_info', controller='myapp')
    map.create_regs(['content', 'myapp'])
 
    app = RoutesMiddleware(simple_app, map)
    map.connect('myapp/*path_info', controller='myapp')
    map.connect('project/*path_info', controller='myapp')
    map.create_regs(['content', 'myapp'])
 
    app = RoutesMiddleware(simple_app, map)
    map.connect('myapp/*path_info', controller='myapp')
    map.connect('project/*path_info', controller='myapp')
    map.create_regs(['content', 'myapp'])
 
    app = RoutesMiddleware(simple_app, map, singleton=False)
    map.connect('myapp/*path_info', controller='myapp')
    map.connect('project/*path_info', controller='myapp')
    map.create_regs(['content', 'myapp'])
 
    app = TestApp(RoutesMiddleware(simple_app, map))

src/r/o/routes-HEAD/tests/test_functional/test_middleware.py   routes(Download)
def test_basic():
    map = Mapper(explicit=False)
    map.minimization = True
    map.connect(':controller/:action/:id')
    map.create_regs(['content'])
    map.connect('myapp/*path_info', controller='myapp')
    map.connect('project/*path_info', controller='myapp')
    map.create_regs(['content', 'myapp'])
 
    app = RoutesMiddleware(simple_app, map)
    map.connect('myapp/*path_info', controller='myapp')
    map.connect('project/*path_info', controller='myapp')
    map.create_regs(['content', 'myapp'])
 
    app = RoutesMiddleware(simple_app, map)
    map.connect('myapp/*path_info', controller='myapp')
    map.connect('project/*path_info', controller='myapp')
    map.create_regs(['content', 'myapp'])
 
    app = RoutesMiddleware(simple_app, map, singleton=False)
    map.connect('myapp/*path_info', controller='myapp')
    map.connect('project/*path_info', controller='myapp')
    map.create_regs(['content', 'myapp'])
 
    app = TestApp(RoutesMiddleware(simple_app, map))

src/r/o/Routes-2.0/tests/test_functional/profile_rec.py   Routes(Download)
    m.connect('articles/category/:id', controller='articles', action='category')
    m.connect('pages/*name', controller='articles', action='view_page')
    m.create_regs(['content','admin/why', 'admin/user'])
    return m
 

src/r/o/routes-HEAD/tests/test_functional/profile_rec.py   routes(Download)
    m.connect('articles/category/:id', controller='articles', action='category')
    m.connect('pages/*name', controller='articles', action='view_page')
    m.create_regs(['content','admin/why', 'admin/user'])
    return m
 

src/r/o/Routes-2.0/tests/test_units/test_environment.py   Routes(Download)
        m.connect('viewpost/:id', controller='post', action='view')
        m.connect(':controller/:action/:id')
        m.create_regs(['content', 'blog'])
        con = routes.request_config()
        con.mapper = m

src/r/o/routes-HEAD/tests/test_units/test_environment.py   routes(Download)
        m.connect('viewpost/:id', controller='post', action='view')
        m.connect(':controller/:action/:id')
        m.create_regs(['content', 'blog'])
        con = routes.request_config()
        con.mapper = m