fix unicode message 'erreur de résidence' + manque variable residences
This commit is contained in:
parent
9c147d6f51
commit
d9954cc7b3
@ -174,10 +174,14 @@ class LoginRestController(RestController):
|
|||||||
|
|
||||||
residence_dn = Residences.get_dn_by_name(anon_user, residence)
|
residence_dn = Residences.get_dn_by_name(anon_user, residence)
|
||||||
|
|
||||||
|
residences = Residences.get_residences(anon_user)
|
||||||
|
|
||||||
if residence_dn is None:
|
if residence_dn is None:
|
||||||
return dict(
|
return dict(
|
||||||
|
residences = residences,
|
||||||
login = username,
|
login = username,
|
||||||
error = "erreur de résidence"
|
residence = residence,
|
||||||
|
error = u"erreur de résidence"
|
||||||
)
|
)
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
@ -187,8 +191,6 @@ class LoginRestController(RestController):
|
|||||||
redirect("/")
|
redirect("/")
|
||||||
#end if
|
#end if
|
||||||
|
|
||||||
residences = Residences.get_residences(anon_user)
|
|
||||||
|
|
||||||
return dict(
|
return dict(
|
||||||
residences = residences,
|
residences = residences,
|
||||||
login = username,
|
login = username,
|
||||||
|
@ -17,7 +17,7 @@ error_email_from = paste@localhost
|
|||||||
[server:main]
|
[server:main]
|
||||||
use = egg:Paste#http
|
use = egg:Paste#http
|
||||||
host = 0.0.0.0
|
host = 0.0.0.0
|
||||||
port = 9004
|
port = 9003
|
||||||
|
|
||||||
[app:main]
|
[app:main]
|
||||||
use = egg:Brie
|
use = egg:Brie
|
||||||
|
Loading…
Reference in New Issue
Block a user