fix unicode message 'erreur de résidence' + manque variable residences

This commit is contained in:
Rémi 2013-03-30 20:59:09 +01:00
parent 9c147d6f51
commit d9954cc7b3
2 changed files with 6 additions and 4 deletions

View File

@ -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,

View File

@ -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