[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
Thu Aug 4 17:00:40 UTC 2011


1 new changeset in ckan:

http://bitbucket.org/okfn/ckan/changeset/93e39b5b7b17/
changeset:   93e39b5b7b17
branch:      release-v1.4.3
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	Sat Jul 23 18:16:15 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