Changeset 3027


Ignore:
Timestamp:
21/11/07 13:40:55 (12 years ago)
Author:
domlowe
Message:

removed proxyname from development.ini and replaced with g.server in wcs code

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

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/development.ini

    r2897 r3027  
    3232ows_common_config = %(here)s/eg_ows_capabilities.xml 
    3333configfile = %(here)s/ndgDiscovery.config 
    34 proxyname= ndgbeta.badc.rl.ac.uk 
     34 
    3535#the password file needs to be outside the egg: 
    3636#passwordFile =  %(here)s/passwords.txt   
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/csml_wcs1_1_0.py

    r2978 r3027  
    318318                    #use the temp file name (minus extension) as an ID 
    319319 
    320                     try: 
    321                         hostname=request.environ['paste.config']['app_conf']['proxyname'] 
    322                     except: 
    323                         hostname=hostname=request.environ['HTTP_HOST']                     
    324                     c.hyperlink ='http://'+hostname+'/'+os.path.basename(request.environ['paste.config']['app_conf']['publish_dir'])+'/'+os.path.basename(filename) 
     320                    hostname=g.server   
     321                    c.hyperlink =hostname+'/'+os.path.basename(request.environ['paste.config']['app_conf']['publish_dir'])+'/'+os.path.basename(filename) 
    325322                    r=render_response('wcs_getCoverageResponse', format='xml') 
    326323                    r.headers['content-type'] = 'text/xml' 
Note: See TracChangeset for help on using the changeset viewer.