comparison sat/core/sat_main.py @ 3088:d1464548055a

plugin file download: meta plugin to handle file download: - first code in backend to use async/await Python syntax \o/ - plugin with file upload - URL schemes can be registered - `http` and `https` schemes are handled by default
author Goffi <goffi@goffi.org>
date Fri, 20 Dec 2019 12:28:04 +0100
parents 2cc2f65379f7
children 7574f795bd1e
comparison
equal deleted inserted replaced
3087:a51f7fce1e2c 3088:d1464548055a
65 # value: menu id 65 # value: menu id
66 self.initialised = defer.Deferred() 66 self.initialised = defer.Deferred()
67 self.profiles = {} 67 self.profiles = {}
68 self.plugins = {} 68 self.plugins = {}
69 # map for short name to whole namespace, 69 # map for short name to whole namespace,
70 # extended by plugins with registerNamespace
70 self.ns_map = { 71 self.ns_map = {
71 "x-data": xmpp.NS_X_DATA, 72 "x-data": xmpp.NS_X_DATA,
72 "disco#info": xmpp.NS_DISCO_INFO, 73 "disco#info": xmpp.NS_DISCO_INFO,
73 } 74 }
74 # extended by plugins with registerNamespace 75
75 self.memory = memory.Memory(self) 76 self.memory = memory.Memory(self)
77
78 # trigger are used to change SàT behaviour
76 self.trigger = ( 79 self.trigger = (
77 trigger.TriggerManager() 80 trigger.TriggerManager()
78 ) # trigger are used to change SàT behaviour 81 )
79 82
80 bridge_name = self.memory.getConfig("", "bridge", "dbus") 83 bridge_name = self.memory.getConfig("", "bridge", "dbus")
81 84
82 bridge_module = dynamic_import.bridge(bridge_name) 85 bridge_module = dynamic_import.bridge(bridge_name)
83 if bridge_module is None: 86 if bridge_module is None: