|
|
@@ -1031,6 +1031,21 @@ def list_orga(request): |
|
|
|
.all() |
|
|
|
return { 'Users':Data } |
|
|
|
|
|
|
|
@view_config(route_name='drop_sejour') |
|
|
|
def drop_sejour(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.') |
|
|
|
|
|
|
|
# Feed FicheSejour if any |
|
|
|
FicheSejour = Sejour.by_user(request.user.uid, CurrentYear) |
|
|
|
if FicheSejour: |
|
|
|
DBSession.delete(FicheSejour) |
|
|
|
request.session.flash(('warning', u'Votre participation %s a été supprimé avec succès.' % CurrentYear )) |
|
|
|
else: |
|
|
|
raise HTTPNotFound() |
|
|
|
return HTTPFound(location='/MesJM2L#Sejour') |
|
|
|
|
|
|
|
@view_config(route_name='jm2l', renderer="jm2l:templates/jm2l.mako") |
|
|
|
def jm2l_page(request): |
|
|
|
if request.user is None: |
|
|
|