Ignore:
Timestamp:
12/12/07 15:46:29 (12 years ago)
Author:
lawrence
Message:

Modifications to ensure the default page is discovery (at least
in the default installation), and the first steps to allow
external (from the egg) static pages, layout and css.

Location:
TI05-delivery/ows_framework/trunk/ows_server/ows_server/config
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/config/middleware.py

    r2629 r3137  
    7171    app = RegistryManager(app) 
    7272     
    73     static_app = StaticURLParser(config.paths['static_files']) 
     73    # Allow static files from outside the egg too ... g.htdocs defined in ndgDiscovery.config 
     74    if g.htdocs: 
     75        static_paths = [g.htdocs,config.paths['static_files']] 
     76    else: static_paths= [config.paths['static_files']] 
     77    static_app = [StaticURLParser(path) for path in static_paths] 
    7478    javascripts_app = StaticJavascripts() 
    75     app = Cascade([static_app, javascripts_app, app]) 
     79    app = Cascade(static_app +[javascripts_app, app]) 
    7680    return app 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/config/ndgMiddleware.py

    r3120 r3137  
    1919       
    2020        self.globals=g 
     21        self.globals.htdocs=cf.get('DEFAULT','htdocs',None) 
    2122        self.globals.localLink=cf.get('layout','localLink',None) 
    2223        self.globals.localImage=cf.get('layout','localImage',None) 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/config/routing.py

    r3119 r3137  
    3434     
    3535    # following is the shell for the rest of the ndg  
    36     map.connect('',controller='discovery')   #remote this when we have something on the main page 
     36    map.connect('',controller='discovery',action='index') 
    3737    map.connect('login', controller='login') 
    3838    map.connect('getCredentials', controller='login', action='getCredentials') 
Note: See TracChangeset for help on using the changeset viewer.