Commit graph

15 commits

Author SHA1 Message Date
Tobias Mueller (ideabox)
d1fa3fa6ea Rephrased renewal mail to not mention renewal as we don't do renewals 2013-08-06 12:31:06 +02:00
Tobias Mueller (ideabox)
4accb41992 Added memberlist.py, a tool to JSON dump the member list
It has simplejson as a requirement. Python >2.6 ships it by default
IIRC. There is a version of simplejson compatible with Python >2.4.

You also need to have MySQL set up via ~/.my.cnf as the file referenced
in the imports states.
2013-02-06 16:50:00 +01:00
Tobias Mueller
85ede4c945 renewal-script: Make it not mail if there are no members needing renewal 2012-11-23 22:16:58 +01:00
Tobias Mueller
2e9d68fdf8 get_renewees: Order by lastname instead of last renewal date 2012-11-23 21:16:08 +00:00
Tobias Mueller
460bde8f64 renewal: added a new program to mail the members needing to renew
If you really want to send an email, you can run it with "-s" to not
accidentally flood someone. It reuses some logic from the other program but not nearly as much as I like. But it does the job for now.
2012-05-03 14:46:27 +00:00
Tobias Mueller
e9c889e58b get_renewees: added __str__ and __repr__ to have nice output on screen 2012-05-03 14:40:57 +00:00
Tobias Mueller
9b9935dbd2 get_renewees: Be compatible with older template by defining variables
Otherwise, you could end up having a KeyError while parsing a template.
And it's not a problem having too many keys defined in the dict.
2011-08-03 12:35:00 +02:00
Tobias Mueller
96148bbf1f Added a script that returns the members that need renewal as well as ballots
I intend to run that script via a cronjob to inform the people of their need to renew.

The second usecase is retrieving the ballots that were generated. Now, sending mails with the voting instructions can be done like this:
./get_renewees.py -s -l debug -t 16  voting-instructions.txt
2011-05-25 17:02:32 +02:00
Tobias Mueller
fc7cb36e36 mail-instructions.py: Made it work with the UTF-8 encoded names
Jeez, Python-2.4's standard library seems to not be capable of handling unicode strings for the email libraries right away. This version is proven to work.
2010-08-29 17:42:23 +00:00
Tobias Mueller
b746ee8015 bin/mail-instructions: Replaced PERL version by a Python version
I finally came around to test the script on window. Although the Python
script is a bit ugly, it works. Just some Python-2.4 compatibility was
needed. In the future, we can assume to read the Template string
directory out of the file, i.e. w/o creating $member, etc. Also, check
whether a "$" in the token confuses the Template parser.
2010-05-26 00:08:12 +01:00
Tobias Mueller
044a449b46 Add a simple visualization script
Inititally written by Daniel Siegel. It can plot graphs based on CSV
data. Feel free to move this script to a more appropriate place.
2009-09-02 15:48:05 +02:00
Olav Vitters
b3ba3fb0a9 Make it actually work 2009-06-08 16:55:53 +02:00
Olav Vitters
14e1a9a3fc Add Python (test) version of mail-instructions.pl 2009-06-08 16:22:42 +02:00
Tobias Mueller
65a94e8f90 Adding the script to mail the tokens to the electorate 2009-06-08 00:04:36 +02:00
Tobias Mueller
4ec2319eb7 Added the script to create temporary voting tokens 2009-06-07 23:50:46 +02:00