Changeset 8557
- Timestamp:
- 06/09/12 22:15:46 (8 years ago)
- Location:
- mauRepo/HPFos/trunk/hpfos/HPFos
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
mauRepo/HPFos/trunk/hpfos/HPFos/moles3epb.py
r8549 r8557 123 123 def _filter_bbox(self, collections, bbox): 124 124 if bbox is None: 125 collections125 return collections 126 126 res = [] 127 127 for collection in collections: … … 158 158 res.append(collection) 159 159 break 160 return res 160 161 161 162 def retrieveGUIDFromInstance(self, instance): -
mauRepo/HPFos/trunk/hpfos/HPFos/osImpl/myimpl.py
r8555 r8557 227 227 return self._digest_fatcat_atom(context, results) 228 228 229 count, start_index, start_page = self._importCountAndPage(context) 229 count, start_index, start_page = self._importCountAndPage(context) 230 tot_results = len(results) 230 231 # This check is a trick to speed up the response when no query parameter 231 232 # is required (all parameters are None). In this case the results are paged first … … 241 242 else: 242 243 filtered = self.apply_query_params(context, results) 243 subresults = filter_results(filtered, count, start_index, start_page) 244 245 tot_results = len(subresults)244 subresults = filter_results(filtered, count, start_index, start_page) 245 tot_results = len(subresults) 246 246 247 return Result(count, start_index, start_page, tot_results, \ 247 248 subresult = subresults, title=HPFOS_TITLE) … … 461 462 if not context.has_key(GUID) or context[GUID] is None: 462 463 return context['moles3EPB'].getObservationCollections(bbox = ibbox, 463 keywords = context['q']) 464 keywords = context['q'], 465 start = context['start'], 466 end = context['stop']) 464 467 465 468 obj = context['moles3EPB'].getInstanceFromGUID(context[GUID])
Note: See TracChangeset
for help on using the changeset viewer.