diff options
author | lovetox <philipp@hoerist.com> | 2020-03-14 10:15:46 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2020-03-14 10:15:46 +0300 |
commit | 5425f7ea547a5ff0f11846514bf9dc92f195bf90 (patch) | |
tree | 332b9d98f58a0fe52c78ba1c4bb635e8648f8446 /nbxmpp | |
parent | 024648852a6e772a8d4ac552ba48a8d5abae53c9 (diff) |
Client: Expose more data via propertys
Diffstat (limited to 'nbxmpp')
-rw-r--r-- | nbxmpp/auth.py | 4 | ||||
-rw-r--r-- | nbxmpp/client.py | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/nbxmpp/auth.py b/nbxmpp/auth.py index e279c41..6c287ec 100644 --- a/nbxmpp/auth.py +++ b/nbxmpp/auth.py @@ -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 diff --git a/nbxmpp/client.py b/nbxmpp/client.py index 5c6bd7f..3cd209d 100644 --- a/nbxmpp/client.py +++ b/nbxmpp/client.py @@ -180,6 +180,10 @@ class Client(Observable): 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 |