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.
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.
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
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.
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.