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

KeyError: 'resource' #70

Open
dcmul opened this issue Nov 10, 2017 · 3 comments
Open

KeyError: 'resource' #70

dcmul opened this issue Nov 10, 2017 · 3 comments

Comments

@dcmul
Copy link

dcmul commented Nov 10, 2017

I couldn’t find any help anywhere else. My apologies if my question seem silly.

I am using ckan ckan 2.5.3 with lxml installed.

I insert view iframes on a page, will get his error when the page runs
File '../ckanext-pages/ckanext/pages/controller.py', line 237 in _inject_views_into_page
package_id = context['resource'].resource_group.package_id
KeyError: 'resource'

apparently context is not added to the context

Has anyone seen this error before? Any ideas how to handle it?

@torfsen
Copy link
Contributor

torfsen commented Nov 13, 2017

Which version of ckanext-pages are you using?

@dcmul
Copy link
Author

dcmul commented Nov 13, 2017

release-v0.1.0

@torfsen
Copy link
Contributor

torfsen commented Jan 24, 2018

Could you please post some more details about the issue? In particular:

  • The full traceback
  • The template code that you use

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