Ignore:
Timestamp:
09/03/10 22:47:22 (10 years ago)
Author:
sdonegan
Message:

Adds client IP address to xml msg 2 send to api..

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MILK/trunk/milk_server/milk_server/controllers/browse/discovery.py

    r6552 r6714  
    317317        # 
    318318        # http://proj.badc.rl.ac.uk/ndg/ticket/984 
     319 
     320        #record clientIP for passing to DDS... (SJD 09/03/10) 
     321        clientIPaddr = request.environ['REMOTE_ADDR'] 
     322 
    319323        try: 
    320324            searchClient.search(searchString, 
     
    327331                                geoSearchType = geoSearch, 
    328332                                orderBy = orderBy, 
    329                                 orderDirection = orderDirection) 
     333                                orderDirection = orderDirection, 
     334                                clientIP = clientIPaddr) 
     335 
    330336        except socket.error, e: 
    331337            logging.error("Socket error for discovery service search: %s" % e) 
Note: See TracChangeset for help on using the changeset viewer.