Changeset 8716


Ignore:
Timestamp:
10/01/13 15:17:33 (6 years ago)
Author:
mnagni
Message:

Incomplete - # 22576: Filtering on Files in a particular Result returns all Files rather than a subset.
 http://team.ceda.ac.uk/trac/ceda/ticket/22576

File:
1 edited

Legend:

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

    r8646 r8716  
    277277 
    278278    def generate_entries(self, atomroot, subresults, path, params_model, context): 
     279        if subresults is None: 
     280            return 
     281         
    279282        if isinstance(subresults, list) \ 
    280283                and len(subresults) > 0 \ 
     
    421424            return context['moles3EPB'].searchSelectiveLoadByInstance(obj, 'member') 
    422425        elif type(obj) == CEDA_Observation: 
     426            ''' 
     427                Sometimes returns empty because the Result associated with the  
     428                CedaObservation has not a pointer to the file catalog but a URL link. 
     429                The link may point either to a file or to a directory. 
     430            ''' 
    423431            for source in obj.result.source: 
    424432                if source.function == 'search': 
    425433                    return extract_fatcat_entities(source.description) 
     434            return None 
    426435 
    427436         
Note: See TracChangeset for help on using the changeset viewer.