Fix auth redirect
This commit is contained in:
+1
-1
@@ -87,7 +87,7 @@ def sign_in_out(request):
|
|||||||
request.session.flash(('error',u'Vous avez entré un mauvais couple identifiant/password !'))
|
request.session.flash(('error',u'Vous avez entré un mauvais couple identifiant/password !'))
|
||||||
return HTTPFound(location="/sign/login",
|
return HTTPFound(location="/sign/login",
|
||||||
headers=headers)
|
headers=headers)
|
||||||
return HTTPFound(location=request.route_url('home'),
|
return HTTPFound(location=request.route_url('home', year=''),
|
||||||
headers=headers)
|
headers=headers)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -37,11 +37,11 @@
|
|||||||
<td style="position: relative;">
|
<td style="position: relative;">
|
||||||
${Entity_Type}, ${entity.get_entity_type.entity_subtype}<br>
|
${Entity_Type}, ${entity.get_entity_type.entity_subtype}<br>
|
||||||
<strong>
|
<strong>
|
||||||
<a href="/entity/${entity.get_entity_type.entity_type}/${entity.slug}">${entity.name}</a>
|
<a href="/entity/${entity.get_entity_type.slug_entity_type}/${entity.slug}">${entity.name}</a>
|
||||||
</strong>
|
</strong>
|
||||||
% if request.user and request.user.Staff:
|
% if request.user and request.user.Staff:
|
||||||
<span style="float:right;">
|
<span style="float:right;">
|
||||||
<a href="/entity/${entity.get_entity_type.entity_type}/${entity.slug}/edit">edit</a>
|
<a href="/entity/${entity.get_entity_type.slug_entity_type}/${entity.slug}/edit">edit</a>
|
||||||
</span>
|
</span>
|
||||||
% endif
|
% endif
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
+1
-1
@@ -887,7 +887,7 @@ def change_year(request):
|
|||||||
if year>-1:
|
if year>-1:
|
||||||
session['year'] = year
|
session['year'] = year
|
||||||
return HTTPFound(location='/%s/' % year)
|
return HTTPFound(location='/%s/' % year)
|
||||||
return HTTPFound(location=request.route_url('home'))
|
return HTTPFound(location=request.route_url('home', year=''))
|
||||||
|
|
||||||
@view_config(route_name='pict_user', renderer="jm2l:templates/Profil/pict_user.mako")
|
@view_config(route_name='pict_user', renderer="jm2l:templates/Profil/pict_user.mako")
|
||||||
def pict_user(request):
|
def pict_user(request):
|
||||||
|
|||||||
Reference in New Issue
Block a user