Mercurial > libervia-web
changeset 915:e9e9d9d893a8
server: renamed getProfileName to profileNameGet following core change and new conventions.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 05 Mar 2017 23:15:09 +0100 |
parents | 0c0551967bdf |
children | e9bb7257d051 |
files | src/server/blog.py src/server/server.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/server/blog.py Sun Feb 26 18:32:47 2017 +0100 +++ b/src/server/blog.py Sun Mar 05 23:15:09 2017 +0100 @@ -169,7 +169,7 @@ prof_requested = _unquote(request.postpath[0]) try: - prof_found = self.host.bridge.getProfileName(prof_requested) + prof_found = self.host.bridge.profileNameGet(prof_requested) except DBusException: prof_found = None if not prof_found or prof_found == C.SERVICE_PROFILE:
--- a/src/server/server.py Sun Feb 26 18:32:47 2017 +0100 +++ b/src/server/server.py Sun Mar 05 23:15:09 2017 +0100 @@ -1014,7 +1014,7 @@ login_jid = None try: - profile = self.sat_host.bridge.getProfileName(login) + profile = self.sat_host.bridge.profileNameGet(login) except Exception: # XXX: ProfileUnknownError wouldn't work, it's encapsulated if login_jid is not None and login_jid.user: # try to create a new sat profile using the XMPP credentials if not self.sat_host.options["allow_registration"]: