Mercurial > libervia-backend
comparison sat/core/xmpp.py @ 4021:412b99c29d83
core (xmpp), component file sharing, plugin XEP-0363: `enabled_features` + HTTP Upload:
add a mechanism to explicitely enable some features in components, and use it to enable
HTTP Upload only if it's explicitely enabled.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 23 Mar 2023 15:38:07 +0100 |
parents | 2d59974a8e3e |
children | 78b5f356900c |
comparison
equal
deleted
inserted
replaced
4020:d8a1219e913f | 4021:412b99c29d83 |
---|---|
1065 _("The requested entry point ({entry_point}) is not available").format( | 1065 _("The requested entry point ({entry_point}) is not available").format( |
1066 entry_point=entry_point | 1066 entry_point=entry_point |
1067 ) | 1067 ) |
1068 ) | 1068 ) |
1069 | 1069 |
1070 self.enabled_features = set() | |
1070 self.identities = [disco.DiscoIdentity("component", "generic", C.APP_NAME)] | 1071 self.identities = [disco.DiscoIdentity("component", "generic", C.APP_NAME)] |
1071 # jid is set automatically on bind by Twisted for Client, but not for Component | 1072 # jid is set automatically on bind by Twisted for Client, but not for Component |
1072 self.jid = component_jid | 1073 self.jid = component_jid |
1073 if host is None: | 1074 if host is None: |
1074 try: | 1075 try: |