[ckan-changes] commit/ckanext-harvest: 2 new changesets
Bitbucket
commits-noreply at bitbucket.org
Mon Nov 21 17:29:22 UTC 2011
2 new commits in ckanext-harvest:
https://bitbucket.org/okfn/ckanext-harvest/changeset/a8e48b022ecf/
changeset: a8e48b022ecf
branch: feature-new-ckan-harvester-features
user: amercader
date: 2011-11-18 18:53:01
summary: [ckan harvester] Fix typo
affected #: 1 file
diff -r de092a858798cd63af9e4d5d8c1bd6925b7722bc -r a8e48b022ecf16b67c13f09809f7d18873db1b98 ckanext/harvest/harvesters/base.py
--- a/ckanext/harvest/harvesters/base.py
+++ b/ckanext/harvest/harvesters/base.py
@@ -112,7 +112,7 @@
#TODO: use site user when available
user_name = self.config.get('user',u'harvest')
else:
- api_verion = '2'
+ api_version = '2'
user_name = u'harvest'
context = {
https://bitbucket.org/okfn/ckanext-harvest/changeset/bf67919f7e11/
changeset: bf67919f7e11
branch: feature-new-ckan-harvester-features
user: amercader
date: 2011-11-21 18:29:10
summary: [ckan harvester] Add support for sending an API key
affected #: 1 file
diff -r a8e48b022ecf16b67c13f09809f7d18873db1b98 -r bf67919f7e11c586d5c427e1ae569a56d4aca7a4 ckanext/harvest/harvesters/ckanharvester.py
--- a/ckanext/harvest/harvesters/ckanharvester.py
+++ b/ckanext/harvest/harvesters/ckanharvester.py
@@ -36,6 +36,9 @@
)
try:
+ api_key = self.config.get('api_key',None)
+ if api_key:
+ http_request.add_header('Authorization',api_key)
http_response = urllib2.urlopen(http_request)
return http_response.read()
Repository URL: https://bitbucket.org/okfn/ckanext-harvest/
--
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