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

Don't assume resource format is there on text view plugin can_view method #2320

Merged
merged 1 commit into from
Feb 26, 2015

Conversation

amercader
Copy link
Member

Sometimes is not, eg in

curl -X POST http://127.0.0.1:5000/api/3/action/datastore_create -H "Authorization: {YOUR-API-KEY}" -d '{"resource": {"package_id": "{PACKAGE-ID}"}, "fields": [ {"id": "a"}, {"id": "b"} ], "records": [ { "a": 1, "b": "xyz"}, {"a": 2, "b": "zzz"} ]}'

joetsoi added a commit that referenced this pull request Feb 26, 2015
Don't assume resource format is there on text view plugin `can_view` method
@joetsoi joetsoi merged commit 13d7fee into master Feb 26, 2015
@joetsoi joetsoi deleted the 2320-text-view-check-format branch February 26, 2015 18:02
amercader added a commit that referenced this pull request Mar 3, 2015
amercader added a commit that referenced this pull request Mar 3, 2015
amercader added a commit that referenced this pull request Mar 3, 2015
amercader added a commit that referenced this pull request Mar 3, 2015
skrchnavy pushed a commit to OpenDataNode/odn-ckan that referenced this pull request Mar 27, 2015
* release-v2.2.2: (37 commits)
  Update version number for release 2.2.2
  Rebuild frontend
  [ckan#2107] Don't create a source link if not a valid url
  [ckan#2037] PEP8
  [ckan#2037] Cherry-pick functional test for dataset creation
  [ckan#2037] Fix exception on resource creation
  [ckan#1909] phix phantomjs peerinvalid phailure
  Update changelog ahead of 2.2.2 release
  [ckan#2320] Don't assume resource format is there
  [ckan#2324] Don't "normalize" resource URL in recline view
  [ckan#2319] Clean up field names before rendering the table
  Compile updated translation files
  Update translations from Transifex
  [ckan#2283] Pack template_legacy resources on python setup.py install
  [ckan#2158] Replace all resource extras on update so they don't get lost
  [ckan#2044] Fix datastore docs link
  [ckan#2272] Fix docs that say Celery will be be installed
  [ckan#1647] Stats extension. 'Largest Groups' links lead either to organizations or to groups page
  [ckan#1649] Stats extension. Changed tests
  [ckan#1649] Stats extension. Tag counter works properly
  ...
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

2 participants