[ckan-dev] Fail to create grid views (resource views in 2.3a)

李承錱[Sol] u103133.u103135 at gmail.com
Mon Aug 18 08:45:26 UTC 2014


Hi,

I have just upgraded my CKAN instance to 2.3a (master branch). I followed this page https://github.com/ckan/ckan/wiki/Resource-Views to set the resource views.

But I got an error message when creating grid views: 

"Exception: Action function resource_view_list did not call its auth function”

Here is the trace:

Traceback (most recent call last):
  File "/usr/lib/ckan/default/bin/paster", line 9, in <module>
    load_entry_point('PasteScript==1.7.5', 'console_scripts', 'paster')()
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
    invoke(command, command_name, options, args[1:])
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
    exit_code = runner.run(args)
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
    result = self.command()
  File "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 2139, in command
    self.create_views(self.args[1:])
  File "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 2161, in create_views
    create_function()
  File "/usr/lib/ckan/default/src/ckan/ckan/lib/cli.py", line 2324, in create_grid_views
    res = logic.get_action('resource_view_list')(context, {'id': row[0]})
  File "/usr/lib/ckan/default/src/ckan/ckan/logic/__init__.py", line 423, in wrapped
    .format(action_name))
Exception: Action function resource_view_list did not call its auth function

P.S. I have upgraded the database and enable all the plugins named *_view. And other views (text, pdf…) have been created successfully.

Sorry for my bad English and many thanks.


Sol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140818/c3bcdfa0/attachment-0002.html>


More information about the ckan-dev mailing list