ckan

CKAN: delete a list of records within the DataStore in a single query

南笙酒味 提交于 2019-12-11 05:38:52
问题 NOTE : My original problem is to delete all the records except for the last N ones, but guessing such a thing is impossible with CKAN API, I've come up with the following solution: To get the total ammount of records using datastore_search . To get the ID of the first record in the previous search. To obtain the IDs of all the records from the first record ID to total-N . So, my question is: how to delete all the identified IDs in a single query? I've tried the following: $ curl -X POST "http

CKAN Resource URL empty

让人想犯罪 __ 提交于 2019-12-11 04:35:44
问题 I'm integrating Orion and Cygnus_Ngsi with CKAN. I have configured in Cygnus the CKAN sink as following: cygnus-ngsi.sinks.ckan-sink.channel = ckan-channel cygnus-ngsi.sinks.ckan-sink.type = com.telefonica.iot.cygnus.sinks.NGSICKANSink cygnus-ngsi.sinks.ckan-sink.api_key = ba753aae-7c1f-XXXX-XXXXX-cf893100ab53 cygnus-ngsi.sinks.ckan-sink.ckan_host = ckan host cygnus-ngsi.sinks.ckan-sink.ckan_port = 8080 cygnus-ngsi.sinks.ckan-sink.orion_url = http://orion ip:1026 cygnus-ngsi.sinks.ckan-sink

ckan.plugins.core.PluginNotFoundException: pages

你离开我真会死。 提交于 2019-12-11 02:49:18
问题 I'm using CKAN as my open data portal. It's written in Python using Pylons framework. I just want to add a new page similar to about page to display the terms and conditions to the users. About page comes built in. So I installed ckanext-pages using pip command. What I did was below 1. # Activate your CKAN virtual environment . /usr/lib/ckan/default/bin/activate 2. # Install the pages extension. pip install -e 'git+https://github.com/ckan/ckanext-pages.git#egg=ckanext-pages' But now I end up

CKAN ERROR preview CSV , but OK for Download

江枫思渺然 提交于 2019-12-11 02:35:39
问题 I have the following error in my local test machine, just instaled. Ckan, datapusher, datastore all in the same machine. Accesing a csv resource i have the following message; "This resource view is not available at the moment. Click here for more information. Could not load view: DataProxy returned an error (Data transformation failed. error: An error occured while connecting to the server: Unable to connect to server at URL: http://192.168.146.131/dataset/f2139e6a-7e22-41b1-97c2-51101dcfee2f

how to redirect ckan to external url unless authorized or signed in

一笑奈何 提交于 2019-12-11 01:12:38
问题 How can i go about redirecting ckan to a external URL unless logged in? I added the following code below in ckan/logic/auth/get.py under the method site_read if context.get('auth_user_obj') is not None: return {'success': True} else: return {'success': False, 'msg': 'User not logged in. Pleaes authenticate with AD.'} But i only get as far as just saying permission denied on each page unless logged in. Is there a way i can make it just redirect to an external url if not signed in or

Error message “no theme named 'sphinx-theme-okfn'” when trying to build CKAN's docs

落花浮王杯 提交于 2019-12-11 00:12:37
问题 I have CKAN installed in a virtualenv and the virtualenv activated, and I've installed the requirements in pip-requirements-docs.txt, but when I try to build the docs I get this error: > python setup.py build_sphinx ... sphinx.errors.ThemeError: no theme named 'sphinx-theme-okfn' found (missing theme.conf?) 回答1: The problem is that the Sphinx theme that CKAN uses is not part of the CKAN git repository itself, it has its own git repo which is a submodule of the CKAN git repo. So before you can

Fiware Cygnus: no data have been persisted in CKAN

不想你离开。 提交于 2019-12-10 22:45:00
问题 I am trying to use cygnus with CKAN, but no data have been persisted in CKAN when the attribute is JSON type. First, I send information to Orion: Accept: application/json X-AUTH-TOKEN: <mytoken> Fiware-Service: PapelClubDemo Fiware-ServicePath: /events/leonliterario { "contextElements": [ { "type": "Events", "isPattern": "false", "id": "thisweek", "attributes": [ { "name": "schedule", "type": "json", "value": [{"title": "Presentación Viva Mi Gente","date": "2015-11-30","location": "Salón de

CKAN load test data - permission denied for _table_metadata

别来无恙 提交于 2019-12-10 20:12:55
问题 I installed CKAN 2.2 from source given the instructions at http://docs.ckan.org/en/latest/maintaining/installing/install-from-source.html. I also installed the datapusher service. Of what I can see it works ... I can click and browse CKAN. However, when I try to load some test data I get the error sqlalchemy.exc.ProgrammingError: (ProgrammingError) permission denied for relation _table_metadata 'SECLT 1 FROM "_table_metadata" WHERE name = %s AND alias_of IS NULL' (u' ',) 回答1: Hmm, it may be

CKAN : Upload to datastore failed; Resource too large to download

天涯浪子 提交于 2019-12-10 15:39:52
问题 When i try to upload a large csv file to CKAN datastore it fails and shows the following message Error: Resource too large to download: 5158278929 > max (10485760). I changed the maximum in megabytes a resources upload to ckan.max_resource_size = 5120 in /etc/ckan/production.ini What else do i need to change to upload a large csv to ckan. Screenshot: 回答1: That error message comes from the DataPusher, not from CKAN itself: https://github.com/ckan/datapusher/blob/master/datapusher/jobs.py#L250.

paster db init -c XXXX/development.ini not working for CKAN-command 'db' not know

懵懂的女人 提交于 2019-12-08 02:34:34
问题 I am a first time user of CKAN and python, most of my development in .NET I am setting up CKAN for the first time on a Windows 7 computer. I am trying to run the line: paster db init -c [FOLDER NAME]\development.ini But I keep getting the error Comman db not know I have looked at: http://docs.ckan.org/en/943-writing-extensions-tutorial/paster.html I also tried: c:\Python27\Scripts\virtualenv.exe --no-site-packages [FOLDER NAME]\ckanext\datastore this did not work Is there a alternative way to