Ignore:
Timestamp:
20/06/12 10:53:00 (8 years ago)
Author:
mnagni
Message:

The _packResult "missed" the first result
The view built a wrong hostURL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/HPFos/trunk/src/HPFos/view/view.py

    r8357 r8360  
    6060 
    6161def getDescription(request, collection_guid = None, observation_guid = None, result_guid = None): 
    62     ospath = _buildDescriptionOsPath(collection_guid, observation_guid, result_guid) 
     62    hostURL = _buildHostURL(request) 
     63    ospath = _buildDescriptionOsPath(hostURL, collection_guid, observation_guid, result_guid) 
    6364    response = os_engine.getDescription(ospath) 
    6465    context = {} 
     
    6768 
    6869def _doSearch(request, iformat, collection_guid = None, observation_guid = None, result_guid = None): 
    69     host = _buildHostURL(request)    
     70    hostURL = _buildHostURL(request)    
    7071    #params = {'q': ['ice', 'snow']} 
    7172    params = request.GET.copy() 
     
    9495    return _doSearch(request, iformat, collection_guid, observation_guid, result_guid)    
    9596 
    96 def _buildDescriptionOsPath(collection_guid = None, observation_guid = None, result_guid = None): 
     97def _buildDescriptionOsPath(hostURL, collection_guid = None, observation_guid = None, result_guid = None): 
    9798    ospath = "%s/search/" % (hostURL) 
    9899    if collection_guid: 
Note: See TracChangeset for help on using the changeset viewer.