~ubuntu-branches/debian/sid/openchange/sid

« back to all changes in this revision

Viewing changes to mapiproxy/services/ocsmanager/ocsmanager/config/routing.py

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-04-12 20:07:57 UTC
  • mfrom: (11 sid)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20120412200757-k933d9trljmxj1l4
Tags: 1:1.0-4
* openchangeserver: Add dependency on openchangeproxy.
* Rebuild against newer version of Samba 4.
* Use dpkg-buildflags.
* Migrate to Git, update Vcs-Git header.
* Switch to debhelper 9.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""Routes configuration
 
2
 
 
3
The more specific and detailed routes should be defined first so they
 
4
may take precedent over the more generic routes. For more information
 
5
refer to the routes manual at http://routes.groovie.org/docs/
 
6
"""
 
7
from routes import Mapper
 
8
 
 
9
def make_map(config):
 
10
    """Create, configure and return the routes Mapper"""
 
11
    map = Mapper(directory=config['pylons.paths']['controllers'],
 
12
                 always_scan=config['debug'])
 
13
    map.minimization = False
 
14
    map.explicit = False
 
15
 
 
16
    # The ErrorController route (handles 404/500 error pages); it should
 
17
    # likely stay at the top, ensuring it can always be resolved
 
18
    map.connect('/error/{action}', controller='error')
 
19
    map.connect('/error/{action}/{id}', controller='error')
 
20
 
 
21
    # CUSTOM ROUTES HERE
 
22
 
 
23
    map.connect('/{controller}/{action}')
 
24
    map.connect('/{controller}/{action}/{id}')
 
25
 
 
26
    return map