Changeset 8364


Ignore:
Timestamp:
20/06/12 12:00:32 (7 years ago)
Author:
mnagni
Message:
 
File:
1 edited

Legend:

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

    r8360 r8364  
    244244        step = calculateStep(**kwargs) 
    245245 
    246         startIndex = self.indexOffset - 1 
     246        startIndex = self.indexOffset 
    247247        if kwargs['params_values'].has_key('startIndex'): 
    248             if int(kwargs['params_values']['startIndex']) < len(results): 
     248            if int(kwargs['params_values']['startIndex']) > 0 and int(kwargs['params_values']['startIndex']) -1 < len(results): 
    249249                startIndex = int(kwargs['params_values']['startIndex']) 
    250250         
     
    264264                lastResult = len(results) 
    265265 
    266         for result in results[firstResult:lastResult]: 
     266        for result in results[firstResult - 1:lastResult]: 
    267267            result_guid = kwargs['moles3EPB'].retrieveGUIDFromInstance(result) 
    268268            item = Subresult(result_guid.id, "title", datetime.now().isoformat()) 
Note: See TracChangeset for help on using the changeset viewer.