Plugin Passerelle pour les sources de données TS1
Go to file
Frédéric Péters 4ec0db89b9
gitea/passerelle-imio-ts1-datasources/pipeline/head This commit looks good Details
ci: build deb package for bookworm (#78968)
2023-11-07 08:05:47 +01:00
debian debian: use debhelper compat level 12 2022-12-23 07:50:42 +01:00
passerelle_imio_ts1_datasources [TELE-513] use django 2.2 reverse import 2021-05-25 17:24:57 +02:00
.gitignore init gitignore 2023-06-06 12:25:52 +02:00
Jenkinsfile ci: build deb package for bookworm (#78968) 2023-11-07 08:05:47 +01:00
MANIFEST.in add missing MANIFEST.in file 2017-02-28 15:02:34 +01:00
README.md Update README.md 2017-04-03 13:32:03 +02:00
setup.py Update django version to match Entr'Ouvert setup 2023-06-08 15:26:04 +02:00

README.md

Passerelle connector : Import ts1 datasources and method to add, update or delete new records

Installation

  • add to Passerelle installed apps settings: INSTALLED_APPS += ('passerelle_imio_ts1_datasources',) TENANT_APPS += ('passerelle_imio_ts1_datasources',)

  • enable module: PASSERELLE_APP_PASSERELLE_IMIO_TS1_DATASOURCES_ENABLED = True

Usage

  • create and configure new connector

  • test service by clicking on the available links

    • the /voies/ endpoint may take some time as it will query for everything (but will be cut at 51 items)
    • the /voies/?q=... endoint is set with an example string, feel free to change it.

Usage in w.c.s.

  • configure a list field with a jsonp datasource, with the "/voies/" endpoint URL as value.

Usage of 'import_json' destination and motivation in command line

with user passerelle :

  • sudo -u passerelle passerelle-manage tenant_command import_site -d local-passerelle.example.net [JSON_FILE]