Watch
1
0
Fork
You've already forked ckanext-switzerland_users
0
mirror of https://github.com/opendata-swiss/ckanext-switzerland_users.git synced 2026-08-17 12:43:15 +00:00
  • Python 84.6%
  • HTML 15.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-02-03 18:02:04 +01:00
.github/workflows tests: Update requirements 2026-02-03 17:58:32 +01:00
ckanext fix: remove action read so that datasets will be displayed when visiting the role-url 2025-10-30 09:47:26 +01:00
.gitignore exclude the compiled translations from git 2021-04-12 11:38:49 +02:00
dev-requirements.txt feat: Update dev-requirements.txt 2025-08-04 15:34:56 +02:00
LICENSE Create LICENSE 2022-01-13 11:56:01 +01:00
publiccode.yml feat: add publiccode.yml 2025-12-09 16:16:35 +01:00
pyproject.toml feat: Update to pyproject.toml packaging 2025-11-24 18:18:20 +01:00
README.md Fix extension name 2021-06-02 19:02:42 +02:00
setup.cfg feat: Update to pyproject.toml packaging 2025-11-24 18:18:20 +01:00
setup.py feat: Update to pyproject.toml packaging 2025-11-24 18:18:20 +01:00
test.ini refactor: Use ckanext.switzerland.env config option, don't define it again 2025-08-13 13:35:38 +02:00

Ckan extension to allow for a user search by organization amd role

This ckan extensions adds a user search and user display by organization and roles.

Prerequisites

  • ckanext-hierarchy needs to be installed
  • only two levels of hierarchy are allowed for organization

Purpose

  • adds a custom user_list, displaying organizations and roles that a user is involved in
  • adds a user search form that allows to search for users by organization and role

Update translations

To generate an updated ckanext-switzerland_users.pot file inside the Docker container, use the following commands:

docker-compose exec ckan bash
source /usr/lib/ckan/venv/bin/activate
cd /usr/lib/ckanext/ckanext-switzerland_users/
python setup.py extract_messages

Copy any new strings that you want to translate from the new ckanext-switzerland_users.pot into the ckanext-switzerland_users.po file for each language, and add the translations.

After that compile the po files into mo files:

python setup.py compile_catalog

Log out of the ckan container (ctrl+D) and restart it for the new translations to be used:

docker-compose restart ckan