Changeset 8578 for mauRepo


Ignore:
Timestamp:
27/09/12 14:03:33 (7 years ago)
Author:
mnagni
Message:

Complete - # 22551: List resources / display single file
 http://team.ceda.ac.uk/trac/ceda/ticket/22551

The error is due to a wrongly filled record in Moles3.
A correction on hpfos.HPFos.osImpl.myimpl.digest_search_results method fixes the problem on localhost

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/HPFos/trunk/hpfos/HPFos/osImpl/myimpl.py

    r8565 r8578  
    227227            return self._digest_fatcat_atom(context, results)                     
    228228 
    229         count, start_index, start_page = self._importCountAndPage(context)  
    230         tot_results = len(results)        
     229        count, start_index, start_page = self._importCountAndPage(context) 
     230        tot_results = 0 
     231        try: 
     232            tot_results = len(results) 
     233        except: 
     234            pass  
     235                    
    231236        # This check is a trick to speed up the response when no query parameter  
    232237        # is required (all parameters are None). In this case the results are paged first  
     
    440445                          namespace = "http://a9.com/-/opensearch/extensions/geo/1.0/")         
    441446        param_7 = OSParam("start", "start",  
    442                           namespace = "http://a9.com/-/opensearch/extensions/geo/1.0/")         
     447                          namespace = "http://a9.com/-/opensearch/extensions/time/1.0/")         
    443448        param_8 = OSParam("stop", "stop",  
    444449                          namespace = "http://a9.com/-/opensearch/extensions/time/1.0/")         
Note: See TracChangeset for help on using the changeset viewer.