Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: okfn/ckanext-sa
base: df9b8b996b
...
head fork: okfn/ckanext-sa
compare: 1f8a397ca0
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 8 additions and 6 deletions.
  1. +6 −6 ckanext/sa/commands.py
  2. +2 −0  pip-requirements.txt
View
12 ckanext/sa/commands.py
@@ -9,8 +9,8 @@
import ckan.model as model
from fetch_resource import download
-import logging as log
-log.basicConfig(filename='datastore_upload.log', level=log.DEBUG)
+import logging
+log = logging.getLogger()
TYPE_MAPPING = {
messytables.types.StringType: 'text',
@@ -49,13 +49,13 @@ class DatastorerException(Exception):
class AddToDataStore(CkanCommand):
"""
- Upload all resources from the FileStore to the DataStore
+ Upload all resources with a url and a mimetype/format matching allowed
+ formats to the DataStore
Usage:
- paster datastore [package-id]
- - Update all resources or just those belonging to a specific
- package if a package id is provided.
+ paster datastore_upload
+ - Update all resources.
"""
summary = __doc__.split('\n')[0]
usage = __doc__
View
2  pip-requirements.txt
@@ -0,0 +1,2 @@
+# Requirements to run commands.py
+messytables>=0.5.0

No commit comments for this range

Something went wrong with that request. Please try again.