[foundation-web] Releasing the bin/ scripts under GPLv3+
- From: Tobias Mueller <tobiasmue src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [foundation-web] Releasing the bin/ scripts under GPLv3+
- Date: Wed, 18 Dec 2013 19:17:24 +0000 (UTC)
commit 486163628c617845e9c97d4aabe87f7268c0cf8e
Author: Tobias Mueller (ideabox) <tobiasmue gnome org>
Date: Wed Dec 18 20:15:44 2013 +0100
Releasing the bin/ scripts under GPLv3+
bin/create-tmp-tokens.pl | 14 ++++++++++++++
bin/get_renewees.py | 18 ++++++++++++++++++
bin/mail-instructions.py | 17 +++++++++++++++++
bin/mail_renewals_to_foundation_list.py | 17 +++++++++++++++++
bin/memberlist.py | 18 ++++++++++++++++++
bin/membership-graph.py | 18 ++++++++++++++++++
6 files changed, 102 insertions(+), 0 deletions(-)
---
diff --git a/bin/create-tmp-tokens.pl b/bin/create-tmp-tokens.pl
index c7d1116..2d3cf7a 100644
--- a/bin/create-tmp-tokens.pl
+++ b/bin/create-tmp-tokens.pl
@@ -41,6 +41,20 @@ use DBI;
# simple VIEW created like this:
# CREATE OR REPLACE VIEW `foundation`.`electorate` AS SELECT id, firstname, lastname, email FROM
`foundation`.`foundationmembers` WHERE DATE_SUB(CURDATE(), INTERVAL 2 YEAR) <=
foundationmembers.last_renewed_on;
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
die "Usage: create-tmp-tokens.pl <election id> <output file for tokens> <output file for mail data>\n"
unless $#ARGV == 2;
$election_id = $ARGV[0];
diff --git a/bin/get_renewees.py b/bin/get_renewees.py
index cf8e3bd..f23b051 100755
--- a/bin/get_renewees.py
+++ b/bin/get_renewees.py
@@ -24,6 +24,24 @@ default-character-set=utf8
The reason to call MySQL client and not use the Python library is
mainly, that the MySQL bindings are not installed.
"""
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+__author__ = "Tobias Mueller"
+__license__ = "GPLv3+"
+__email__ = "tobiasmue gnome org"
+
import datetime
try:
from email.mime.text import MIMEText
diff --git a/bin/mail-instructions.py b/bin/mail-instructions.py
index 4322712..9241762 100755
--- a/bin/mail-instructions.py
+++ b/bin/mail-instructions.py
@@ -29,6 +29,23 @@
# to ask them if they want to update their registered e-mail address and
# receive the instructions.
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+__author__ = "Tobias Mueller"
+__license__ = "GPLv3+"
+__email__ = "tobiasmue gnome org"
+
import smtplib
import sys
import string
diff --git a/bin/mail_renewals_to_foundation_list.py b/bin/mail_renewals_to_foundation_list.py
index 22d576e..cf6ea33 100755
--- a/bin/mail_renewals_to_foundation_list.py
+++ b/bin/mail_renewals_to_foundation_list.py
@@ -8,6 +8,23 @@ import sys
from get_renewees import get_members_which_need_renewal, send_email
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+__author__ = "Tobias Mueller"
+__license__ = "GPLv3+"
+__email__ = "tobiasmue gnome org"
+
TEMPLATE = dedent('''
Hi,
diff --git a/bin/memberlist.py b/bin/memberlist.py
index 2ffebc7..1def825 100644
--- a/bin/memberlist.py
+++ b/bin/memberlist.py
@@ -1,6 +1,20 @@
#!/usr/bin/env python
'''Prints the current member list as JSON'''
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
try:
import json
except ImportError:
@@ -8,6 +22,10 @@ except ImportError:
from get_renewees import execute_query, Member
+__author__ = "Tobias Mueller"
+__license__ = "GPLv3+"
+__email__ = "tobiasmue gnome org"
+
query = ("SET NAMES 'utf8'; "
"SELECT CONCAT(firstname, ';', lastname, ';', email, ';', "
" last_renewed_on) "
diff --git a/bin/membership-graph.py b/bin/membership-graph.py
index a20ee3d..d622f1d 100644
--- a/bin/membership-graph.py
+++ b/bin/membership-graph.py
@@ -7,11 +7,29 @@ mysql -h button-back -u anonvoting -p foundation -B -e 'SELECT DATE_FORMAT(first
mysql -h button-back -u anonvoting -p foundation -B -e "SET @start = '2009-01-01', @end = '2009-08-30';
SELECT DATE_FORMAT(DATE_ADD(last_renewed_on, INTERVAL 2 YEAR), '%Y-%m') as date, COUNT(*) as dropped_out FROM
foundationmembers WHERE last_renewed_on >= DATE_SUB(@start, INTERVAL 2 YEAR) AND last_renewed_on <=
DATE_SUB(@end, INTERVAL 2 YEAR) GROUP BY date;" | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g' | awk 'FNR>1'
'''
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
import logging
import pylab
from pylab import figure, title, bar, xticks, yticks, gca, savefig
import sys
+__author__ = "Tobias Mueller"
+__license__ = "GPLv3+"
+__email__ = "tobiasmue gnome org"
+
plot_title = "New Foundation Members"
figwidth = 40
figheight = 3
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]