Commit graph

9 commits

Author SHA1 Message Date
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