open-data/ckanext-canada — pull request #94 by wardi (2013-04-11 21:56:28+00:00)
Title: New ckanapi.LocalCKAN and RemoteCKAN wrappers, Makefile update and fixes

## ckanapi

LocalCKAN and RemoteCKAN provide a tidier and more consistent interface for accessing CKAN actions, e.g.:

```python
import pprint

demo = RemoteCKAN('http://demo.ckan.org')
pkg = demo.action.package_show(id='aldur_district_spending')
pprint.pprint(pkg)
```

paster commands now use these ckanapi classes for calls to local and remote CKAN action APIs.

## Makefile

New Makefile targets: drop-database, create-database for easier tearing-down and bringing up new databases based on ckan configuration file. PostGIS data is now installed properly.

Makefile will now use passed in ckan configuration file name (no longer tied to development.ini) like:

```
CKAN_CONFIG=target.ini make create-database
```

## fixes

create-organizations command: fix one org and show organizations not being created because of missing ids