changeset 1198:02a7f263a849 beta

fixed issue with latest webhelpers pagination module
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 02 Apr 2011 21:12:27 +0200
parents 376411bf318e
children 268fa0b6b2ef
files rhodecode/lib/indexers/__init__.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/indexers/__init__.py	Sat Apr 02 21:02:54 2011 +0200
+++ b/rhodecode/lib/indexers/__init__.py	Sat Apr 02 21:12:27 2011 +0200
@@ -172,10 +172,12 @@
         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))