comparison src/server/server.py @ 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 86563d6c83b0
comparison
equal deleted inserted replaced
914:0c0551967bdf 915:e9e9d9d893a8
1012 login_jid = None 1012 login_jid = None
1013 else: 1013 else:
1014 login_jid = None 1014 login_jid = None
1015 1015
1016 try: 1016 try:
1017 profile = self.sat_host.bridge.getProfileName(login) 1017 profile = self.sat_host.bridge.profileNameGet(login)
1018 except Exception: # XXX: ProfileUnknownError wouldn't work, it's encapsulated 1018 except Exception: # XXX: ProfileUnknownError wouldn't work, it's encapsulated
1019 if login_jid is not None and login_jid.user: # try to create a new sat profile using the XMPP credentials 1019 if login_jid is not None and login_jid.user: # try to create a new sat profile using the XMPP credentials
1020 if not self.sat_host.options["allow_registration"]: 1020 if not self.sat_host.options["allow_registration"]:
1021 log.warning(u"Trying to register JID account while registration is not allowed") 1021 log.warning(u"Trying to register JID account while registration is not allowed")
1022 request.write(C.PROFILE_AUTH_ERROR) 1022 request.write(C.PROFILE_AUTH_ERROR)