Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"url" parameter is mandatory for resource_create #86

Closed
xapple opened this issue Jun 5, 2016 · 3 comments
Closed

"url" parameter is mandatory for resource_create #86

xapple opened this issue Jun 5, 2016 · 3 comments

Comments

@xapple
Copy link

xapple commented Jun 5, 2016

Hi !

In the README.md you have the following snippet of code as an example:

mysite.action.resource_create(
    package_id='my-dataset-with-files',
    upload=open('/path/to/file/to/upload.csv'))

But that call doesn't work, because it appears that the "url" parameter is mandatory.

@wardi
Copy link
Contributor

wardi commented Jun 5, 2016

Yes, that's been fixed on ckan master, and will be part of the next release. You'll need to add a dummy url value for any currently release versions of ckan though.

@xapple
Copy link
Author

xapple commented Jun 5, 2016

Yeah that's what I did. Thanks for the answer !

@xapple xapple closed this as completed Jun 5, 2016
@wardi
Copy link
Contributor

wardi commented Jun 17, 2016

added to the readme as well bdc5431

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants