Ignore:
Timestamp:
01/04/09 17:08:10 (11 years ago)
Author:
cbyrom
Message:

Add new home page for the browse service + implement usage of the
before methods on controllers to check if MILK is set up to
allow the various services before the controller methods are invoked.
Also add a top level default controller to redirect user to the correct
home page depending on the mode of operation + improve styles,
remove unused controller and move error template to more general top
level - for re-use across the MILK stack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/config/routing.py

    r5099 r5158  
    3030    map.connect('example', 'exampleGranulite', controller = 'atom_editor/listatom', action='showExampleGranulite') 
    3131    map.connect('help', 'help', controller = 'atom_editor/listatom', action='showAtomHelp') 
    32     map.connect('home', 'atomHome', controller = 'atom_editor/listatom', action='atomHome') 
     32    map.connect('atomHome', 'atomHome', controller = 'atom_editor/listatom', action='atomHome') 
    3333    map.connect('list', 'listAtom/:searchData/:associatedAtomID/:associatedAtomType/:associationType', \ 
    3434                controller = 'atom_editor/listatom', action='list', searchData='', \ 
     
    4545    map.connect('semantic',controller='browse/discovery', action='semantic') 
    4646    map.connect('view/:uri', controller = 'browse/retrieve', action='view') 
     47    map.connect('browseHome', controller = 'browse/retrieve', action='home') 
    4748    map.connect('retrive', 'retrieve/:uri', controller = 'browse/retrieve') 
    4849    map.connect('selectedItems',controller='visualise/selectedItems',action='index') 
     
    6263 
    6364    #do this last or else you'll get bizarre behaviour 
    64     map.connect('',controller='browse/discovery',action='index') 
     65    map.connect('default', '',controller='home',action='index') 
    6566    map.connect('clearSession',controller='browse/discovery',action='clearSession') 
    6667    return map 
Note: See TracChangeset for help on using the changeset viewer.