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

Vitor Baptista vitor at vitorbaptista.com
Mon Aug 18 18:02:43 UTC 2014


Hi Sol,

What commit is your CKAN instance in? To discover it, please paste the
results from running "git log -1" on the CKAN folder.

Cheers,


2014-08-18 5:45 GMT-03:00 李承錱[Sol] <u103133.u103135 at gmail.com>:

> 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
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>


-- 

Vítor Baptista

Developer  |  http://vitorbaptista.com | LinkedIn
<http://www.linkedin.com/in/vitorbaptista> | @vitorbaptista
<http://twitter.com/vitorbaptista>

The Open Knowledge Foundation <http://okfn.org>

*Empowering through Open Knowledge*

http://okfn.org/  |  @okfn <http://twitter.com/okfn>  |  OKF on Facebook
<https://www.facebook.com/OKFNetwork>  |  Blog <http://blog.okfn.org/>  |
Newsletter <http://okfn.org/about/newsletter/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140818/949f6c25/attachment-0003.html>


More information about the ckan-dev mailing list