source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/config/ndgMiddleware.py @ 2615

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/config/ndgMiddleware.py@2615
Revision 2615, 519 bytes checked in by lawrence, 12 years ago (diff)

Moving some of the wsgi stack into the ows stack.
At this point an xml dif retrieve works in ows_common.

Line 
1# ndg middleware
2from paste.deploy import CONFIG
3from ows_server.lib.ndg.Utilities import myConfig
4
5class ndgMiddleware:
6   
7    def __init__(self,app):
8       
9        #this is the next application in the wsgi stack
10        self.app=app
11       
12        #set up the ndg configuration file
13        cf=CONFIG.get('configfile')
14        self.config=myConfig(cf)
15       
16    def __call__(self,environ,start_response):
17       
18        environ['ndgConfig']=self.config
19        return self.app(environ,start_response)
20   
Note: See TracBrowser for help on using the repository browser.