Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.
/ jdleden Public archive

Update LDAP, newsletter-subscriptions and export members per department

License

Notifications You must be signed in to change notification settings

jonge-democraten/jdleden

Repository files navigation

jdleden

Build Status Coverage Status

This tool updates hemres newsletter-subscriptions and the LDAP, based on an excel file with member information.

Requires Python 3.4+

Installation

$ git clone https://github.com/jonge-democraten/jdleden.git
$ virtualenv -p python3 env
$ source env/bin/activate
$ pip install -r requirements.txt
$ python create_local_settings.py

Copy jdleden/local_settings_example.py, name it jdleden/local_settings.py and set the settings inside.

Configuration

All settings can be found in local_settings.py.

Usage

Activate the virtual env before using any of the management commands below,

$ source env/bin/activate

Update members,

$ python manage.py updateleden old_list.xlsx new_list.xlsx

Update after change in departments,

$ python manage.py afdelingrondschuif members_list.xlsx

Create members per department excel output,

$ python manage.py createdepartmentexcels members_list.xlsx

Create a text file with member email addresses for a given region, based on a list of gemeenten,

$ python manage.py createregionlist --ledenlijst 2017ledenlijst.xls --gemeenten Amsterdam Utrecht Eindhoven

See https://trac.jongedemocraten.nl/wiki/UpdateLedenlijst

Development and Design

jdleden uses hemres to update newsletter subscriptions.

jdleden uses python-ldap to update LDAP.

Django and Mezzanine are required because hemres depends on them.

About

Update LDAP, newsletter-subscriptions and export members per department

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •