Changeset - 02a7f263a849
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 15 years ago 2011-04-02 21:12:27
marcin@python-works.com
fixed issue with latest webhelpers pagination module
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/indexers/__init__.py
Show inline comments
 
@@ -172,10 +172,12 @@ class ResultWrapper(object):
 
        for docid in self.doc_ids:
 
            yield self.get_full_content(docid)
 

	
 
    def __getslice__(self, i, j):
 
    def __getitem__(self, key):
 
        """
 
        Slicing of resultWrapper
 
        """
 
        i, j = key.start, key.stop
 

	
 
        slice = []
 
        for docid in self.doc_ids[i:j]:
 
            slice.append(self.get_full_content(docid))
0 comments (0 inline, 0 general)