Commit 5425f7ea authored by Philipp Hörist's avatar Philipp Hörist

Client: Expose more data via propertys

parent 02464885
......@@ -65,6 +65,10 @@ class SASL:
def set_password(self, password):
self._password = password
@property
def password(self):
return self._password
def delegate(self, stanza):
if stanza.getNamespace() != NS_SASL:
return
......
......@@ -179,6 +179,10 @@ class Client(Observable):
def set_password(self, password):
self._sasl.set_password(password)
@property
def password(self):
return self._sasl.password
@property
def peer_certificate(self):
return self._peer_certificate, self._peer_certificate_errors
......@@ -256,6 +260,10 @@ class Client(Observable):
self._proxy = proxy
self._dispatcher.get_module('Muclumbus').set_proxy(proxy)
@property
def proxy(self):
return self._proxy
def get_bound_jid(self):
return self._jid
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment