[ckan-changes] commit/ckan: John Glover: Bug fix: 'limit' should be in the data_dict variable rather than context, was causing all packages to be listed

Bitbucket commits-noreply at bitbucket.org
Wed Aug 3 15:28:51 UTC 2011


1 new changeset in ckan:

http://bitbucket.org/okfn/ckan/changeset/b276e3e77ce6/
changeset:   b276e3e77ce6
user:        John Glover
date:        2011-08-03 17:28:15
summary:     Bug fix: 'limit' should be in the data_dict variable rather than context, was causing all packages to be listed
affected #:  1 file (59 bytes)

--- a/ckan/controllers/home.py	Tue Aug 02 22:10:06 2011 +0100
+++ b/ckan/controllers/home.py	Wed Aug 03 16:28:15 2011 +0100
@@ -49,11 +49,10 @@
         c.fields = []
         c.package_count = query.count
         c.latest_packages = current_package_list_with_resources({'model': model,
-                                                                'user': c.user,
-                                                                'limit': 5},
-                                                                 {})      
+                                                                 'user': c.user},
+                                                                 {'limit': 5})      
         return render('home/index.html', cache_key=cache_key,
-                cache_expire=cache_expires)
+                      cache_expire=cache_expires)
 
     def license(self):
         return render('home/license.html', cache_expire=cache_expires)

Repository URL: https://bitbucket.org/okfn/ckan/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list