Changeset 5460


Ignore:
Timestamp:
03/07/09 12:01:43 (8 years ago)
Author:
sdonegan
Message:

Updated to allow updates to main discovery database for ordering ny linked popularity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MSI/Discovery/trunk/DI01-LoggingFramework/urlRedirection/trunk/ndgredirect/controllers/ndgURLredirect.py

    r5427 r5460  
    2626        datasetID = request.params['docID'] 
    2727        datasetTitle = request.params['docTitle'] 
    28         originatingIp = "not.yet.known.really" 
     28        originatingIp = "0.0.0.0" 
    2929         
    3030        #fudge until we get a proper config file sorted... 
    31         configFileName = '/usr/local/ndg-redirect/config/redirect.config' 
     31        configFileNameSrch = '/usr/local/ndg-redirect/config/redirect.config' 
     32        configFileNameDisc = '/usr/local/ndg-redirect/config/discovery.config' 
    3233           
    33         #now update database    
    34         try:      
    35             urlRedirectDB(datasetURL,datasetID,datasetTitle,originatingIp,configFileName) 
    36             logging.info("Successfully updated url redirection database") 
    37              
    38         except: 
    39             logging.warn("Failed at updating url redirection database") 
     34        #now update database     
     35        urlRedirectDB(datasetURL,datasetID,datasetTitle,originatingIp,configFileNameSrch,configFileNameDisc)         
    4036             
    4137        #perform redirect 
Note: See TracChangeset for help on using the changeset viewer.