daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Jun 18th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ### Applicable Route
  2. d.connect('test_admin', '/admin/test/:action', controller=TestAdminController())
  3.  
  4.  
  5. ### In TestAdminController
  6.  
  7. from webhelpers import paginate
  8.  
  9. query = sa.query(Obj)
  10. c.page = paginate.Page(query, page, 15)
  11.  
  12.  
  13.  
  14. ### In Mako
  15.  
  16. ${c.page.pager()}
  17.  
  18.  
  19. ### Throws
  20.  
  21. GenerationException: url_for could not generate URL. Called with args: () {'page': 2}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top