diff pylons_app/controllers/admin.py @ 79:9fe23fdab9e9

Implemented AJAH paging
author Marcin Kuzminski <marcin@python-blog.com>
date Sat, 17 Apr 2010 19:59:06 +0200
parents 6f524697f79d
children 8b06c420491d
line wrap: on
line diff
--- a/pylons_app/controllers/admin.py	Sat Apr 17 19:07:29 2010 +0200
+++ b/pylons_app/controllers/admin.py	Sat Apr 17 19:59:06 2010 +0200
@@ -59,6 +59,9 @@
                 .order_by(UserLogs.action_date.desc())
             p = int(request.params.get('page', 1))
             c.users_log = Page(users_log, page=p, items_per_page=10)
+            c.log_data = render('admin_log.html')
+            if request.params.get('partial'):
+                return c.log_data
         return render('/admin.html')
 
     def hgrc(self, dirname):