ckan

Filtering by ranges in datastore API

女生的网名这么多〃 提交于 2019-12-12 16:19:03
问题 The datastore API documentation at http://docs.ckan.org/en/ckan-2.2/datastore.html describes how methods such as "datastore_delete" or "datastore_search" can include a "filter" parameter to filter results. filters (dictionary) – filters to apply before deleting (eg {“name”: “fred”}). If missing delete whole table and all dependent views. (optional) Taking into account the {"name": "fred"} example, it seems that filtering is based in exact matching. However, is it also possible to specify a

Approach for preveting annomyous access to CKAN site

霸气de小男生 提交于 2019-12-12 06:54:54
问题 I have a CKAN site running with the ckanext-ldap extension configured, but I only wan't authenticated users to be able access the site. This is my solution so far, but I'm not totally satisfied: import ckan.plugins as plugins import ckan.plugins.toolkit as toolkit def site_read(context, data_dict): # List of allowed paths, when not logged in allowed_anon_paths = ['/user/login', '/ldap_login_handler'] # Prevent "site read" if the user is not logged in and the # request path is not in the list

CKAN missing datastore tab / upload options

纵然是瞬间 提交于 2019-12-12 04:45:36
问题 I've followed install instructions from source in here: http://docs.ckan.org/en/latest/maintaining/installing/install-from-source.html And from here: http://docs.ckan.org/en/latest/maintaining/datastore.html I added the datastore entry in ckan.plugins setting. I did Test the setup and it worked. However, when editing/creating a resource in CKAN web interface, the datastore tab or upload to datastore option does not show up. This a new install on a Ubuntu 16.04. CKAN version 2.6.2 Any help is

CKAN PluginNotFoundException in Pages Extension

时光怂恿深爱的人放手 提交于 2019-12-12 04:44:33
问题 I'm using CKAN as my open data portal. It's written in Python using Pylons framework. I want to integrate ckanext-pages plugin. So I used below steps. 1. . /usr/lib/ckan/default/bin/activate 2. pip install -e 'git+https://github.com/ckan/ckanext-pages.git#egg=ckanext-pages' 3. cd /usr/lib/ckan/default/src/ckanext-pages 4. python setup.py develop Still I get below exception. Given that I tried restart CKAN and Apache server. ckan.plugins.core.PluginNotFoundException: pages But when I run the

CKAN distribution not found error while trying to serve CKAN from apache

青春壹個敷衍的年華 提交于 2019-12-12 04:18:01
问题 I am trying to configure datapusher for ckan 2.7 and as a prerequisite i have installed datastore and apache http server. apache httpd version: Apache/2.4.25 (Unix) mod_wsgi package installed 4.5.15 the permissions for the conf files are as specified in the ckan documentation http://docs.ckan.org/en/latest/maintaining/installing/deployment.html contents of ckan_default.conf are WSGIScriptAlias / /etc/ckan/default/apache.wsgi WSGIPassAuthorization On WSGIDaemonProcess ckan_default display-name

ckan 2.3 problems with adding the example_template plugin

∥☆過路亽.° 提交于 2019-12-12 03:38:54
问题 I am trying to customize a ckan 2.3 installation with a template. I followed this documentation. When I try to restart the ckan I get a whole bunch of error messages ending with "ImportError: No module named plugin" I have not changed any of the files named in the error-messages. What can I do to get a custom template running? --- UPDATE --- I am importing the template with ckan.plugins = stats text_view image_view recline_view datastore example_theme The ckan is started with paster serve -

CKAN error upload to datastore (with datapusher)

纵然是瞬间 提交于 2019-12-11 16:56:45
问题 After installing DataPusher (following this question), tried to upload a file in the Datastore tab, come up this error: Versions: Ubuntu 16.04 CKAN version 2.6.2 (installed from source) DataPusher (development installation) Thank you 回答1: CKAN Datapusher only supports structured data in CSV or Excel formats. You are trying to upload a file of type KML which is not supported. Please take a look at the official documentation for more, here and here. Please also check this Github issue, where

How to obtain a given user's dateset list(both public and private) through CKAN API?

巧了我就是萌 提交于 2019-12-11 12:33:25
问题 In my project, I used CKAN to manage my data, now I want to obtain the dataset list under my authorization(both public and private datasets), does anyone know how could I get such a list through CKAN API? 回答1: Get public datasets using package_list or package_search . Get datasets that your user has created, including ones that are private and drafts, using user_show with option include_datasets=True . Remember to use your user's api key, of course. However I believe this leaves the private

CKAN DataStore - Set permissions

天涯浪子 提交于 2019-12-11 12:05:20
问题 (I am not an IT guy, so some of my doubts may seem pretty basic / strange) Through this tutorial (https://github.com/ckan/ckan/wiki/How-to-install-CKAN-2.0-on-CentOS-7) I was able to install CKAN. After, I understood that I would need the DataStore extension for the preview function work well on my installation. Using the documentation I get staked in Set Permissions step (http://docs.ckan.org/en/ckan-2.2/datastore.html#set-permissions), in something that I can not understand I make paster

How to add a menu item to CKAN's naivigation menu?

一笑奈何 提交于 2019-12-11 10:29:19
问题 I want to make the functionality of a custom extension available via a menu item in the CKAN's main navigation menu. Not sure how I can add this new menu item from my extension code. Any help would be appreciated. Thanks, PK 回答1: If you want to take advantage of CKAN's main navigation menu, it gets a little tricky. (We just had to figure this out. Not sure if we did it the right way, but we did get it to work with CKAN 2.2): First, you need the additional content in your extension path