Ignore:
Timestamp:
21/09/10 22:20:30 (9 years ago)
Author:
astephen
Message:

Updated routes to pylons 1.0 requirement using new Routes syntax.
Also added the lines:

# We need minization switched on
map.minimization = True
map.explicit = False

To handle enable "implicit" routing, see:
 http://routes.groovie.org/manual.html#implicit-defaults-and-route-memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cowsclient/branches/migrate-py26-pylons10/cowsclient/config/routing.py

    r7348 r7496  
    1313                 always_scan=config['debug']) 
    1414 
     15    # We need minimization switched on 
     16    map.minimization = True 
     17    map.explicit = False 
     18 
    1519    # The ErrorController route (handles 404/500 error pages); it should 
    1620    # likely stay at the top, ensuring it can always be resolved 
     21    map.connect('/error/{action}', controller='error') 
    1722    map.connect('error/{action}/{id}', controller='error') 
    1823 
    1924    # CUSTOM ROUTES HERE 
    20  
     25    map.connect('/{controller}', action='index', id=None) 
     26    map.connect('/{controller}/{action}', id=None) 
    2127    map.connect('/{controller}/{action}/{id}') 
    22     map.connect('/{controller}/{action}') 
    23     map.connect('/{controller}', action='index') 
    2428    map.connect('*url', controller='template', action='view') 
    2529 
Note: See TracChangeset for help on using the changeset viewer.