Fixed compatibility with Python 2.x
This commit is contained in:
parent
14a2313e5f
commit
acb57bffb4
@ -78,7 +78,7 @@ class userProfilePresenter(base.basePresenter):
|
|||||||
self.send_message("set", tab="main_info", control="name", value=n)
|
self.send_message("set", tab="main_info", control="name", value=n)
|
||||||
# Format title
|
# Format title
|
||||||
user = self.session.get_user(person["id"])
|
user = self.session.get_user(person["id"])
|
||||||
self.send_message("set_title", value=_("{user1_nom}'s profile").format(**user,))
|
self.send_message("set_title", value=_("{user1_nom}'s profile").format(**user))
|
||||||
# Format website (or websites, if there are multiple of them).
|
# Format website (or websites, if there are multiple of them).
|
||||||
if "site" in person and person["site"] != "":
|
if "site" in person and person["site"] != "":
|
||||||
self.send_message("enable_control", tab="main_info", control="website")
|
self.send_message("enable_control", tab="main_info", control="website")
|
||||||
|
Loading…
Reference in New Issue
Block a user