[ckan-dev] .csv File Preview Function

zigchg at gmail.com zigchg at gmail.com
Thu Jul 18 17:50:13 UTC 2013


Hello guys,

 

We solved the ‘No JSON object could be decoded’ problem by adding our api-key to the configure file. And we also have added datastore, datastorer, recline_preview as plug-ins to the configure file too. It goes well when we run ’paster datastorer update -c /etc/ckan/default/production.ini’ and ‘sudo ckan db init’, and we guess we are fine with datastorer now.

 

However, the problem is, when we upload .csv file and try to use the preview function, the website asked us to download the file instead of previewing. How can we solve it? Do we need to activate ‘recline’physically since we know that it is an important component of the preview function?

 

Another thing we noticed is that, although we followed every step in Setting up the DataStore, and there were not any error message, we can not pass the test:

 


(default)root at unbuntu:/usr/lib/ckan/default/src/ckan# curl -x GET “http://127.0.0.1:5000/api/3/action/datastore_search?resource_id=_table_metadata”

curl: (7) couldn’t connect to host

 

Are there any relationship between failing in the test and not being able to preview the .csv file? (We haven’t tried other file since the data files we have are all .csv file.)

 

We are so grateful for all the help you guys gave us, especially Dominik who really helped us a lot. Thank you guys so much!

 

Shawn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130718/166c8c86/attachment.html>


More information about the ckan-dev mailing list