source: cows/trunk/cows/test/testapp/routing.py @ 4613

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/test/testapp/routing.py@4613
Revision 4613, 554 bytes checked in by spascoe, 12 years ago (diff)

Improved testing for COWS.

To effectively test COWS you need a Pylons application. I've created a
mini pylons app in cows/test/testapp that is automatically wired into
the Pylons testing framework when you run "nosetests cows". See
cows/test/README.

Line 
1"""Routes configuration
2
3The more specific and detailed routes should be defined first so they
4may take precedent over the more generic routes. For more information
5refer to the routes manual at http://routes.groovie.org/docs/
6"""
7from pylons import config
8from routes import Mapper
9
10def make_map():
11    """Create, configure and return the routes Mapper"""
12    map = Mapper(directory=config['pylons.paths']['controllers'],
13                 always_scan=config['debug'])
14
15    # CUSTOM ROUTES HERE
16
17    map.connect(':controller/:action/:id')
18    return map
Note: See TracBrowser for help on using the repository browser.