Skip to content

Commit

Permalink
Merge branch 'master' of github.com:okfn/ckan into 1314-solr-schema-s…
Browse files Browse the repository at this point in the history
…ingle-file
  • Loading branch information
Sean Hammond committed Dec 3, 2013
2 parents 882a727 + 38f1e30 commit 41baade
Show file tree
Hide file tree
Showing 61 changed files with 560 additions and 338 deletions.
10 changes: 7 additions & 3 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ recursive-include ckan/config *.xml
recursive-include ckan/i18n *
recursive-include ckan/templates *
recursive-include ckan *.ini
recursive-include ckanext/**/public *
recursive-include ckanext/**/templates *
recursive-include ckanext/**/i18n *

recursive-include ckanext/*/i18n *
recursive-include ckanext/*/public *
recursive-include ckanext/*/templates *
recursive-include ckanext/*/theme/public *
recursive-include ckanext/*/theme/templates *

prune .git
include CHANGELOG.txt
include ckan/migration/migrate.cfg
Expand Down
10 changes: 7 additions & 3 deletions bin/travis-install-dependencies
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ then
fi

# Install postgres and solr
# We need this ppa so we can install postgres-8.4
sudo add-apt-repository -yy ppa:pitti/postgresql
sudo apt-get update -qq
sudo apt-get install postgresql-$PGVERSION solr-jetty libcommons-fileupload-java:amd64=1.2.2-1

sudo service postgresql reload
if [ $PGVERSION == '8.4' ]
then
# force postgres to use 5432 as it's port
sudo sed -i -e 's/port = 5433/port = 5432/g' /etc/postgresql/8.4/main/postgresql.conf
fi

sudo service postgresql restart

# Setup postgres' users and databases
sudo -u postgres psql -c "CREATE USER ckan_default WITH PASSWORD 'pass';"
Expand Down
2 changes: 1 addition & 1 deletion ckan/controllers/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def pager_url(q=None, page=None):
'groups': _('Groups'),
'tags': _('Tags'),
'res_format': _('Formats'),
'license_id': _('License'),
'license_id': _('Licenses'),
}

for facet in g.facets:
Expand Down
2 changes: 1 addition & 1 deletion ckan/logic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def get_action(action):
resolved_action_plugins[name]
)
)
log.debug('Auth function %r was inserted', plugin.name)
log.debug('Action function {0} from plugin {1} was inserted'.format(name, plugin.name))
resolved_action_plugins[name] = plugin.name
# Extensions are exempted from the auth audit for now
# This needs to be resolved later
Expand Down
1 change: 1 addition & 0 deletions ckan/logic/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ def default_extras_schema():
'state': [ignore],
'deleted': [ignore_missing],
'revision_timestamp': [ignore],
'__extras': [ignore],
}
return schema

Expand Down
2 changes: 1 addition & 1 deletion ckan/new_authz.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def _build(self):
resolved_auth_function_plugins[name]
)
)
log.debug('Auth function %r was inserted', plugin.name)
log.debug('Auth function {0} from plugin {1} was inserted'.format(name, plugin.name))
resolved_auth_function_plugins[name] = plugin.name
fetched_auth_functions[name] = auth_function
# Use the updated ones in preference to the originals.
Expand Down
Loading

0 comments on commit 41baade

Please sign in to comment.