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:
parent
f3ccf6d06c
commit
2997533aac
@ -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)
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user