Ignore:
Timestamp:
19/06/07 21:42:00 (12 years ago)
Author:
lawrence
Message:

Further modifications to the ows stack to get the retrieve
document working ... (with css)

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

Legend:

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

    r2615 r2616  
    4747    # handling middleware underneath 
    4848 
    49     app = ndgMiddleware(app) 
     49    app = ndgMiddleware(app,g) 
     50    g=app.globals 
     51     
    5052 
    5153    # Configure logging 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/config/ndgMiddleware.py

    r2615 r2616  
    55class ndgMiddleware: 
    66     
    7     def __init__(self,app): 
     7    def __init__(self,app,g): 
    88         
    99        #this is the next application in the wsgi stack 
     
    1212        #set up the ndg configuration file 
    1313        cf=CONFIG.get('configfile') 
    14         self.config=myConfig(cf) 
     14        cf=myConfig(cf) 
     15       
     16        self.globals=g 
     17        self.globals.localLink=cf.get('layout','localLink',None) 
     18        self.globals.localImage=cf.get('layout','localImage',None) 
     19        self.globals.localAlt=cf.get('layout','localAlt','Visit Local Site') 
     20        self.globals.ndgLink=cf.get('layout','ndgLink','http://ndg.nerc.ac.uk') 
     21        self.globals.ndgImage=cf.get('layout','ndgImage',None) 
     22        self.globals.ndgAlt=cf.get('layout','ndgAlt','Visit NDG') 
     23        self.globals.PageLogo=cf.get('layout','pageLogo',None) 
     24        self.config=cf 
     25         
    1526         
    1627    def __call__(self,environ,start_response): 
Note: See TracChangeset for help on using the changeset viewer.