Extension Cmap


Extension Basics

Title
Cmap
Name
ckanext-cmap
Type
Public extension
Description
The **cmap** extension for CKAN appears to provide enhanced capabilities related to collaborative m
CKAN versions
Download-Url (zip)
Last commit
13 years ago (2012-09-28 19:14:14)
Url to repo
Category
Visualization & Analytics


Background Infos

Description (long)
Show details

ckanext-cmap

Custom CKAN extension for the CMAP Data Sharing Hub.

Installation

To install into a Python virtual environment, make sure your virtualenv is activated then run this command:

pip install -e 'git+https://github.com/NewAmsterdamIdeas/ckanext-cmap.git#egg=ckanext-cmap'

Testing

Running CKAN’s Tests

ckanext-cmap comes with a test-core.ini file that can be used to run CKAN’s tests with the ckanext-cmap extension enabled. From the ckanext-cmap directory, run this command:

nosetests --ckan --with-pylons=test-core.ini ../ckan/ckan/tests/

(where ../ckan/ckan/tests should be the path to the tests directory of your copy of CKAN).

When the tests finish you should see something like this:

----------------------------------------------------------------------
Ran 1199 tests in 782.876s

OK (SKIP=29)

indicating that all tests either passed OK or were skipped (no failures or errors).

ckanext-cmap/ckanext/cmap/cmap_nose_plugin.py contains a nose plugin that causes some of CKAN’s tests to be skipped, these are tests that are expected to fail due to deliberate changes made by ckanext-cmap to CKAN’s behaviour. CMAPNosePlugin will be enabled whenever ckanext-cmap is installed in your virtual environment.

Running ckanext-cmap’s Tests

ckanext-cmap also comes with its own tests for testing its custom features. The code for these tests can be found in ckanext-cmap/ckanext/cmap/tests/.

To run these tests you first need to install the Beautiful Soup Python library. Make sure your virtual environment is active, then run:

pip install beautifulsoup4

Then to run the tests, run this command from the ckanext-cmap directory:

nosetests --ckan --with-pylons=test-core.ini ckanext/cmap/tests
Version
Version release date
(not set)
Contact name
NuCivic
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints

To install into a Python virtual environment, make sure your virtualenv is activated then run this command:

pip install -e 'git+https://github.com/NewAmsterdamIdeas/ckanext-cmap.git#egg=ckanext-cmap'
Plugins to configure (ckan.ini)
cmap
CKAN Settings (ckan.ini)
DB migration to be executed
(not set)
<< back to Extensions