Skip to content

Commit

Permalink
LocalCKAN.call_action: add ignored requests_kwargs parameter
Browse files Browse the repository at this point in the history
fixes #146
  • Loading branch information
wardi committed Sep 24, 2019
1 parent db2e040 commit 1a8c3f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanapi/localckan.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ def get_site_username(self):
return user['name']

def call_action(self, action, data_dict=None, context=None, apikey=None,
files=None):
files=None, requests_kwargs=None):
"""
:param action: the action name, e.g. 'package_create'
:param data_dict: the dict to pass to the action, defaults to {}
:param context: an override for the context to use for this action,
remember to include a 'user' when necessary
:param apikey: not supported
:param files: None or {field-name: file-to-be-sent, ...}
:param requests_kwargs: ignored for LocalCKAN (requests not used)
"""
# copy dicts because actions may modify the dicts they are passed
# (CKAN...you so crazy)
Expand Down
1 change: 1 addition & 0 deletions ckanapi/remoteckan.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def call_action(self, action, data_dict=None, context=None, apikey=None,
:param context: always set to None for RemoteCKAN
:param apikey: API key for authentication
:param files: None or {field-name: file-to-be-sent, ...}
:param requests_kwargs: kwargs for requests get/post calls
This function parses the response from the server as JSON and
returns the decoded value. When an error is returned this
Expand Down

0 comments on commit 1a8c3f1

Please sign in to comment.