Did I find the right examples for you? yes no

All Samples(428)  |  Call(273)  |  Derive(9)  |  Import(146)
Mapper handles URL generation and URL recognition in a web
application.

Mapper is built handling dictionary's. It is assumed that the web
application will handle the dictionary returned by URL recognition
to dispatch appropriately.

URL generation is done by passing keyword parameters into the
generate function, a URL is then returned.

src/c/o/cogen-0.2.1/examples/cogen-irc/CogenIrcApp/cogenircapp/config/routing.py   cogen(Download)
"""
from pylons import config
from routes import Mapper
 
def make_map():
    """Create, configure and return the routes Mapper"""
    map = Mapper(directory=config['pylons.paths']['controllers'],

src/c/o/cogen-0.2.1/examples/cogen-chat/ChatApp/chatapp/config/routing.py   cogen(Download)
"""
from pylons import config
from routes import Mapper
 
def make_map():
    """Create, configure and return the routes Mapper"""
    map = Mapper(directory=config['pylons.paths']['controllers'],

src/g/u/gunicorn-18.0/examples/frameworks/pylonstest/pylonstest/config/routing.py   gunicorn(Download)
"""
from pylons import config
from routes import Mapper
 
def make_map():
    """Create, configure and return the routes Mapper"""
    map = Mapper(directory=config['pylons.paths']['controllers'],

src/g/u/gunicorn-HEAD/examples/frameworks/pylonstest/pylonstest/config/routing.py   gunicorn(Download)
"""
from pylons import config
from routes import Mapper
 
def make_map():
    """Create, configure and return the routes Mapper"""
    map = Mapper(directory=config['pylons.paths']['controllers'],

src/p/k/pkg-gunicorn-HEAD/examples/frameworks/pylonstest/pylonstest/config/routing.py   pkg-gunicorn(Download)
"""
from pylons import config
from routes import Mapper
 
def make_map():
    """Create, configure and return the routes Mapper"""
    map = Mapper(directory=config['pylons.paths']['controllers'],

src/f/i/fixture-HEAD/fixture/examples/pylons_example/addressbook/addressbook/config/routing.py   fixture(Download)
"""
from pylons import config
from routes import Mapper
 
def make_map():
    """Create, configure and return the routes Mapper"""
    map = Mapper(directory=config['pylons.paths']['controllers'],

src/k/a/kanone-HEAD/examples/pylons/form/form/config/routing.py   kanone(Download)
refer to the routes manual at http://routes.groovie.org/docs/
"""
from routes import Mapper
 
def make_map(config):
    """Create, configure and return the routes Mapper"""
    map = Mapper(directory=config['pylons.paths']['controllers'],

src/b/l/blueberrypy-HEAD/examples/helloworld/helloworld/config.py   blueberrypy(Download)
from blueberry import config
 
from routes import Mapper
 
def make_map():
    map = Mapper(directory='helloworld/controllers', always_scan=True)

src/t/w/twMaps-0.1a0.dev-r720/twMapsSampleAppPylons/twmapssampleapppylons/config/routing.py   twMaps(Download)
"""
Setup your Routes options here
"""
import os
from routes import Mapper
 
def make_map(global_conf={}, app_conf={}):
    root_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
 
    map = Mapper(directory=os.path.join(root_path, 'controllers'))

src/r/u/rum-0.4dev-20110726/rum/router.py   rum(Download)
        self._serial = count(0)
        self.mapper = routes.Mapper(
            register=True,
            explicit=True,
            always_scan=always_scan,

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