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)
|
||||
|
||||
residences = Residences.get_residences(anon_user)
|
||||
|
||||
if residence_dn is None:
|
||||
return dict(
|
||||
residences = residences,
|
||||
login = username,
|
||||
error = "erreur de résidence"
|
||||
residence = residence,
|
||||
error = u"erreur de résidence"
|
||||
)
|
||||
#end if
|
||||
|
||||
@ -187,8 +191,6 @@ class LoginRestController(RestController):
|
||||
redirect("/")
|
||||
#end if
|
||||
|
||||
residences = Residences.get_residences(anon_user)
|
||||
|
||||
return dict(
|
||||
residences = residences,
|
||||
login = username,
|
||||
|
@ -17,7 +17,7 @@ error_email_from = paste@localhost
|
||||
[server:main]
|
||||
use = egg:Paste#http
|
||||
host = 0.0.0.0
|
||||
port = 9004
|
||||
port = 9003
|
||||
|
||||
[app:main]
|
||||
use = egg:Brie
|
||||
|
Loading…
Reference in New Issue
Block a user