Début de code pour obtenir toutes les adresses mails des adhérents actuels. Ce code a été insuffisamment testé pour le moment : NE PAS DÉPLOYER EN PRODUCTION.

This commit is contained in:
Yohan Bataille 2014-01-24 22:55:07 +01:00
parent f3ccf6d06c
commit 2997533aac
3 changed files with 4 additions and 7 deletions

View File

@ -22,6 +22,7 @@ from brie.controllers.search import SearchController
from brie.controllers.edit import EditController
from brie.controllers.administration import AdministrationController
from brie.controllers.stats import StatsController
from brie.controllers.getemails import GetEmailsController
from brie.controllers.error import ErrorController
from brie.controllers.registration import RegistrationController
from brie.controllers.treasury import TreasuryController
@ -54,6 +55,7 @@ class RootController(BaseController):
edit = EditController(show)
administration = AdministrationController()
stats = StatsController()
getemails = GetEmailsController()
error = ErrorController()
search = SearchController()
registration = RegistrationController(edit)

View File

@ -190,7 +190,6 @@ class CotisationComputes:
cotisation_paid_members = []
cotisation_late_members = []
no_cotisation_members = []
WTF_members = []
for member in members:
if CotisationComputes.is_old_member(member, user_session, residence_dn):
old_members.append(member)
@ -202,11 +201,11 @@ class CotisationComputes:
elif CotisationComputes.is_no_cotisation(member, user_session, residence_dn):
no_cotisation_members.append(member)
else:
WTF_members.append(member)
print "DEBUG : member with weird status !"
#end if
#end for
return dict(old_members=old_members, cotisation_paid_members=cotisation_paid_members, cotisation_late_members=cotisation_late_members, no_cotisation_members=no_cotisation_members, WTF_members=WTF_members)
return dict(old_members=old_members, cotisation_paid_members=cotisation_paid_members, cotisation_late_members=cotisation_late_members, no_cotisation_members=no_cotisation_members)
#end def
#end class

View File

@ -30,10 +30,6 @@
<div class="room_number vide_color">${"%03d" % len(stats['old_members'])}</div>
<span>Anciens membres</span>
</div>
<div>
<div class="room_number vide_color">${"%03d" % len(stats['WTF_members'])}</div>
<span>Membres WTF</span>
</div>
<div>
<div class="room_number vide_color">${"%03d" % stats['number_of_rooms']}</div>
<span>Pièces</span>