[ckan-changes] commit/ckan: 2 new changesets

Bitbucket commits-noreply at bitbucket.org
Wed Oct 26 14:21:03 UTC 2011


2 new commits in ckan:


https://bitbucket.org/okfn/ckan/changeset/b3083b57a356/
changeset:   b3083b57a356
branch:      release-v1.5
user:        dread
date:        2011-10-26 16:03:08
summary:     [doc][xs]: Additional install tip.
affected #:  1 file

diff -r 189fbd62ae3ed0dd6d1d6ee45ec6cc6a91801dbc -r b3083b57a35698c03a016661e81a8d0bbc3edf1a doc/common-error-messages.rst
--- a/doc/common-error-messages.rst
+++ b/doc/common-error-messages.rst
@@ -3,6 +3,8 @@
 
 Whether a developer runs CKAN using paster or going through CKAN test suite, there are a number of error messages seen that are the result of setup problems. As people experience them, please add them to the list here.
 
+These instructions assume you have the python virtual environment enabled (``. pyenv/bin/activate``) and the current directory is the top of the ckan source, which is probably: ``../pyenv/src/ckan/``.
+
 ``nose.config.ConfigError: Error reading config file 'setup.cfg': no such option 'with-pylons'``
 ================================================================================================
 
@@ -73,3 +75,20 @@
 ``AttributeError: 'unicode' object has no attribute 'items'`` (Cookie.py)
 =========================================================================
 
+This can be caused by using repoze.who version 1.0.18 when 1.0.19 is required. Check what you have with::
+
+         pip freeze | grep -i repoze.who=
+
+See what version you need with::
+
+         grep -f requires/*.txt |grep repoze\.who=
+
+Then install the version you need (having activated the environment)::
+
+         pip install repoze.who==1.0.19
+
+``AttributeError: 'module' object has no attribute 'BigInteger'``
+=================================================================
+
+The sqlalchemy module version is too old.
+



https://bitbucket.org/okfn/ckan/changeset/109db2176fac/
changeset:   109db2176fac
branch:      release-v1.5
user:        dread
date:        2011-10-26 16:20:51
summary:     [controllers]: #1421 Fixed facets provision on home page, so tag cloud can work.
affected #:  1 file

diff -r b3083b57a35698c03a016661e81a8d0bbc3edf1a -r 109db2176fac5b417391201ef5cb655e0623d9c2 ckan/controllers/home.py
--- a/ckan/controllers/home.py
+++ b/ckan/controllers/home.py
@@ -58,8 +58,9 @@
 
         try:
             query = query_for(model.Package)
-            query.run({'q': '*:*'})
+            query.run({'q': '*:*', 'facet.field': g.facets})
             c.package_count = query.count
+            c.facets = query.facets # used by the 'tag cloud' recipe
             q = model.Session.query(model.Group).filter_by(state='active')
             c.groups = sorted(q.all(), key=lambda g: len(g.packages), reverse=True)[:6]
         except SearchError, se:

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