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

fixes error message when using GET on POST-only actions #2707

Merged
merged 4 commits into from
Oct 29, 2015

Conversation

xingyz
Copy link
Contributor

@xingyz xingyz commented Oct 23, 2015

When request_data is None and try_url_params, it basically means you are calling a POST-only action with GET method, the original error message is not quite clear. I bumped into the error message when I was calling organization_purge in the url bar in my browser, and it took me some time to figure out why, so I think the modification would give users a better idea what exactly went wrong

@amercader amercader assigned amercader and wardi and unassigned amercader Oct 27, 2015
@wardi
Copy link
Contributor

wardi commented Oct 27, 2015

@perceptron-XYZ would you fix the pep8 error? This isn't perfect but it's better than what we have, so I'll merge it once the tests are passing.

@xingyz
Copy link
Contributor Author

xingyz commented Oct 27, 2015

Yes sure. I'm on my way to office.I'll take a look when I come in.

On Oct 27, 2015, at 08:46, Ian Ward notifications@github.com wrote:

@perceptron-XYZ would you fix the pep8 error? This isn't perfect but it's better than what we have, so I'll merge it once the tests are passing.


Reply to this email directly or view it on GitHub.

@xingyz
Copy link
Contributor Author

xingyz commented Oct 27, 2015

@wardi I got the pep8 and test case fixed

wardi added a commit that referenced this pull request Oct 29, 2015
fixes error message when using GET on POST-only actions
@wardi wardi merged commit 26fc983 into ckan:master Oct 29, 2015
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

Successfully merging this pull request may close these issues.

None yet

3 participants