Mercurial > libervia-backend
comparison sat/core/sat_main.py @ 3102:7574f795bd1e
core, bridge: encryptionPluginsGet now returns a serialised list + added "directed" in metadata
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 30 Dec 2019 20:44:04 +0100 |
parents | d1464548055a |
children | 3fcc99b2d6b7 |
comparison
equal
deleted
inserted
replaced
3101:ab7e8ade848a | 3102:7574f795bd1e |
---|---|
732 ret = [] | 732 ret = [] |
733 for p in plugins: | 733 for p in plugins: |
734 ret.append({ | 734 ret.append({ |
735 "name": p.name, | 735 "name": p.name, |
736 "namespace": p.namespace, | 736 "namespace": p.namespace, |
737 "priority": str(p.priority), | 737 "priority": p.priority, |
738 "directed": p.directed, | |
738 }) | 739 }) |
739 return ret | 740 return data_format.serialise(ret) |
740 | 741 |
741 def _encryptionTrustUIGet(self, to_jid_s, namespace, profile_key): | 742 def _encryptionTrustUIGet(self, to_jid_s, namespace, profile_key): |
742 client = self.getClient(profile_key) | 743 client = self.getClient(profile_key) |
743 to_jid = jid.JID(to_jid_s) | 744 to_jid = jid.JID(to_jid_s) |
744 d = client.encryption.getTrustUI(to_jid, namespace=namespace or None) | 745 d = client.encryption.getTrustUI(to_jid, namespace=namespace or None) |