core, frontends: remove bridge method "connect" (always use asyncConnect)
This commit is contained in:
parent
f09fb76752
commit
f719875f0b
2 changed files with 2 additions and 38 deletions
|
|
@ -223,12 +223,6 @@ class DbusObject(dbus.service.Object):
|
|||
def confirmationAnswer(self, id, accepted, data, profile):
|
||||
return self._callback("confirmationAnswer", unicode(id), accepted, data, unicode(profile))
|
||||
|
||||
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
|
||||
in_signature='ss', out_signature='b',
|
||||
async_callbacks=None)
|
||||
def connect(self, profile_key="@DEFAULT@", password=''):
|
||||
return self._callback("connect", unicode(profile_key), unicode(password))
|
||||
|
||||
@dbus.service.method(const_INT_PREFIX+const_CORE_SUFFIX,
|
||||
in_signature='ss', out_signature='',
|
||||
async_callbacks=None)
|
||||
|
|
|
|||
|
|
@ -228,22 +228,6 @@ errback is called with error constant as parameter:
|
|||
- ProfileUnknownError: the profile name is unknown
|
||||
- ConnectedProfileError: a connected profile would not be deleted
|
||||
|
||||
[connect]
|
||||
type=method
|
||||
category=core
|
||||
sig_in=ss
|
||||
sig_out=b
|
||||
param_0_default="@DEFAULT@"
|
||||
param_1_default=''
|
||||
doc=Connect a profile
|
||||
doc_param_0=%(doc_profile_key)s
|
||||
doc_param_1=password: the SàT profile password
|
||||
doc_return=a deferred boolean or failure:
|
||||
- boolean if the profile authentication succeed:
|
||||
- True if the XMPP connection was already established
|
||||
- False if the XMPP connection has been initiated (it may still fail)
|
||||
- failure if the profile authentication failed
|
||||
|
||||
[asyncConnect]
|
||||
async=
|
||||
type=method
|
||||
|
|
|
|||
Loading…
Reference in a new issue