core, frontends: remove bridge method "connect" (always use asyncConnect)
This commit is contained in:
parent
f09fb76752
commit
f719875f0b
1 changed files with 2 additions and 38 deletions
|
|
@ -86,7 +86,6 @@ class SAT(service.Service):
|
|||
self.bridge.register("getEntityData", lambda _jid, keys, profile: self.memory.getEntityData(jid.JID(_jid), keys, profile))
|
||||
self.bridge.register("asyncCreateProfile", self.memory.asyncCreateProfile)
|
||||
self.bridge.register("asyncDeleteProfile", self.memory.asyncDeleteProfile)
|
||||
self.bridge.register("connect", self.connect)
|
||||
self.bridge.register("asyncConnect", self.asyncConnect)
|
||||
self.bridge.register("disconnect", self.disconnect)
|
||||
self.bridge.register("getContacts", self.getContacts)
|
||||
|
|
@ -183,14 +182,6 @@ class SAT(service.Service):
|
|||
self.plugins[import_name].is_handler = False
|
||||
#TODO: test xmppclient presence and register handler parent
|
||||
|
||||
def connect(self, profile_key=C.PROF_KEY_NONE, password=''):
|
||||
"""Connect to jabber server
|
||||
|
||||
@param password (string): the SàT profile password
|
||||
@param profile_key: %(doc_profile_key)s
|
||||
"""
|
||||
self.asyncConnect(profile_key, password)
|
||||
|
||||
def asyncConnect(self, profile_key=C.PROF_KEY_NONE, password=''):
|
||||
"""Retrieve the individual parameters, authenticate the profile
|
||||
and initiate the connection to the associated XMPP server.
|
||||
|
|
@ -352,8 +343,6 @@ class SAT(service.Service):
|
|||
|
||||
def startService(self):
|
||||
log.info(u"Salut à toi ô mon frère !")
|
||||
#TODO: manage autoconnect
|
||||
#self.connect()
|
||||
|
||||
def stopService(self):
|
||||
log.info(u"Salut aussi à Rantanplan")
|
||||
|
|
|
|||
Loading…
Reference in a new issue