[predicates] fix paginated_rset for components that change page_size_property
authorJulien Cristau <julien.cristau@logilab.fr>
Tue, 05 Jan 2016 10:31:29 +0100
changeset 11081 70733b2dfd2a
parent 11080 245f440b814a
child 11082 0cdd92261c4a
[predicates] fix paginated_rset for components that change page_size_property The predicate and component had better agree on the page size.
predicates.py
--- a/predicates.py	Wed Jan 06 11:47:08 2016 +0100
+++ b/predicates.py	Tue Jan 05 10:31:29 2016 +0100
@@ -498,7 +498,7 @@
                 except ValueError:
                     page_size = None
             if page_size is None:
-                page_size = req.property_value('navigation.page-size')
+                page_size = req.property_value(cls.page_size_property)
         if len(rset) <= (page_size*self.nbpages):
             return 0
         return self.nbpages