|
@@ -745,6 +745,11 @@ def vote_logo(request): |
|
|
|
|
|
|
|
|
@view_config(route_name='list_users', renderer="jm2l:templates/Participant/list.mako") |
|
|
@view_config(route_name='list_users', renderer="jm2l:templates/Participant/list.mako") |
|
|
def list_users(request): |
|
|
def list_users(request): |
|
|
|
|
|
if request.user is None: |
|
|
|
|
|
# Don't answer to users that aren't logged |
|
|
|
|
|
raise HTTPForbidden(u'Vous devez vous identifier pour obtenir une réponse.') |
|
|
|
|
|
if not request.user.Staff: |
|
|
|
|
|
raise HTTPForbidden(u'Vous n\'avez pas l\'autorité suffisante pour effectuer cette action.') |
|
|
Data = DBSession.query(User, Sejour).outerjoin(Sejour).all() |
|
|
Data = DBSession.query(User, Sejour).outerjoin(Sejour).all() |
|
|
Repas = DBSession.query(Sejour.repas).all() |
|
|
Repas = DBSession.query(Sejour.repas).all() |
|
|
DicRepas = {"Ven":0, "Midi":0, "Soir":0} |
|
|
DicRepas = {"Ven":0, "Midi":0, "Soir":0} |
|
|