Did I find the right examples for you? yes no

All Samples(1980)  |  Call(1980)  |  Derive(0)  |  Import(0)
Create and connect a new Route to the Mapper.

Usage:

.. code-block:: python

    m = Mapper()
    m.connect(':controller/:action/:id')
    m.connect('date/:year/:month/:day', controller="blog", action="view")
    m.connect('archives/:page', controller="blog", action="by_page",(more...)

src/c/o/cogen-0.2.1/examples/cogen-irc/CogenIrcApp/cogenircapp/config/routing.py   cogen(Download)
    # The ErrorController route (handles 404/500 error pages); it should
    # likely stay at the top, ensuring it can always be resolved
    map.connect('error/:action/:id', controller='error')
 
    # CUSTOM ROUTES HERE
 
    map.connect('connect/:server', controller='irc', action='connect')
    map.connect('pull/:id', controller='irc', action='pull')
    map.connect('push/:id', controller='irc', action='push')
    map.connect('push/:id', controller='irc', action='push')
 
    map.connect(':controller/:action/:id')
 
    return map

src/f/i/fixture-HEAD/fixture/examples/pylons_example/addressbook/addressbook/config/routing.py   fixture(Download)
    # The ErrorController route (handles 404/500 error pages); it should
    # likely stay at the top, ensuring it can always be resolved
    map.connect('/error/{action}', controller='error')
    map.connect('/error/{action}/{id}', controller='error')
 
    # CUSTOM ROUTES HERE
    map.connect('/', controller='book', action='index')
 
    map.connect('/{controller}/{action}')
    map.connect('/{controller}/{action}/{id}')

src/r/h/RhodeCode-2.2.5/rhodecode/config/routing.py   RhodeCode(Download)
    # The ErrorController route (handles 404/500 error pages); it should
    # likely stay at the top, ensuring it can always be resolved
    rmap.connect('/error/{action}', controller='error')
    rmap.connect('/error/{action}/{id}', controller='error')
 
 
    #MAIN PAGE
    rmap.connect('home', '/', controller='home', action='index')
    rmap.connect('repo_switcher_data', '/_repos', controller='home',
                 action='repo_switcher_data')
 
    rmap.connect('rst_help',

src/t/w/twMaps-0.1a0.dev-r720/twMapsSampleAppPylons/twmapssampleapppylons/config/routing.py   twMaps(Download)
    # 404/500 error pages. It should likely stay at the top to ensure that the
    # error page is displayed properly.
    map.connect('error/:action/:id', controller='error')
 
    map.connect('', controller='maps', action='index')
    # For more information, refer to the routes manual @
    # http://routes.groovie.org/docs/
    map.connect(':controller/:action/:id')
    map.connect('*url', controller='template', action='view')
 

src/g/a/gazest-0.3.9/gazest/config/routing.py   gazest(Download)
    # The ErrorController route (handles 404/500 error pages); it should
    # likely stay at the top, ensuring it can always be resolved
    map.connect('error/:action/:id', controller='error')
 
    # Define your routes. The more specific and detailed routes should
 
    # map.connect(':controller/:action/:id')
    map.connect('/robots.txt', controller="robots", action="index")
 
    map.connect('/', controller="wiki", action="index")
    map.connect('/about', controller="wiki", action="about")
    map.connect('/contact', controller="home", action="contact")

src/c/o/colony-HEAD/keystone/keystone/routers/admin.py   colony(Download)
        # Token Operations
        auth_controller = AuthController(options)
        mapper.connect("/tokens", controller=auth_controller,
                       action="authenticate",
                       conditions=dict(method=["POST"]))
        mapper.connect("/tokens/{token_id}", controller=auth_controller,
                        action="validate_token",
                        conditions=dict(method=["GET"]))
        mapper.connect("/tokens/{token_id}", controller=auth_controller,
                        action="check_token",
                        conditions=dict(method=["HEAD"]))
        mapper.connect("/tokens/{token_id}", controller=auth_controller,
                        action="delete_token",
                        conditions=dict(method=["DELETE"]))
        mapper.connect("/tokens/{token_id}/endpoints",

src/a/d/adhocracy-2.4.1/parts/omelette/adhocracy/config/routing.py   adhocracy(Download)
    # The ErrorController route (handles 404/500 error pages); it should
    # likely stay at the top, ensuring it can always be resolved
    map.connect('/error/{action}', controller='error')
    map.connect('/error/{action}/{id}', controller='error')
 
    # CUSTOM ROUTES HERE
    map.connect('/', controller='root', action='index')
    map.connect('/index{.format}', controller='root', action='index')
 
    map.connect('/openid/{action}', controller='openidauth')

src/a/d/adhocracy-2.4.1/src/adhocracy/config/routing.py   adhocracy(Download)
    # The ErrorController route (handles 404/500 error pages); it should
    # likely stay at the top, ensuring it can always be resolved
    map.connect('/error/{action}', controller='error')
    map.connect('/error/{action}/{id}', controller='error')
 
    # CUSTOM ROUTES HERE
    map.connect('/', controller='root', action='index')
    map.connect('/index{.format}', controller='root', action='index')
 
    map.connect('/openid/{action}', controller='openidauth')

src/a/d/adhocracy-2.4.1/installed_eggs/adhocracy/config/routing.py   adhocracy(Download)
    # The ErrorController route (handles 404/500 error pages); it should
    # likely stay at the top, ensuring it can always be resolved
    map.connect('/error/{action}', controller='error')
    map.connect('/error/{action}/{id}', controller='error')
 
    # CUSTOM ROUTES HERE
    map.connect('/', controller='root', action='index')
    map.connect('/index{.format}', controller='root', action='index')
 
    map.connect('/openid/{action}', controller='openidauth')

src/a/d/adhocracy-HEAD/src/adhocracy/config/routing.py   adhocracy(Download)
    # The ErrorController route (handles 404/500 error pages); it should
    # likely stay at the top, ensuring it can always be resolved
    map.connect('/error/{action}', controller='error')
    map.connect('/error/{action}/{id}', controller='error')
 
    # CUSTOM ROUTES HERE
    map.connect('/', controller='root', action='index')
    map.connect('/index{.format}', controller='root', action='index')
 
    map.connect('/openid/{action}', controller='openidauth')

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next