Commits

Gael Pasgrimaud  committed 952d3bd

allow to use a custom pager

  • Participants
  • Parent commits c145314

Comments (0)

Files changed (1)

File formalchemy/ext/pylons/controller.py

                                            records=len(values),
                                            total=page.page_count,
                                            page=page.page)
-        return self.render_grid(format=format, fs=fs, id=None, pager=page.pager(**self.pager_args))
+        if 'pager' not in kwargs:
+            pager = page.pager(**self.pager_args)
+        else:
+            pager = kwargs.pop('pager')
+        return self.render_grid(format=format, fs=fs, id=None, pager=pager)
 
     def create(self, format='html', **kwargs):
         """REST api"""