comparison sat/core/sat_main.py @ 2645:f2cf1daa42cb

core: added async TriggerManager Async trigger manager add an asyncPoint method which can be used with Deferred (or sync method). This allow a triggers do to some long operations like doing network requests. MessageReceived and sendMessageData now use asyncPoint.
author Goffi <goffi@goffi.org>
date Sun, 29 Jul 2018 19:22:51 +0200
parents 189e38fb11ff
children 712cb4ff3e13
comparison
equal deleted inserted replaced
2644:e107089d6640 2645:f2cf1daa42cb
30 30
31 log = getLogger(__name__) 31 log = getLogger(__name__)
32 from sat.core.constants import Const as C 32 from sat.core.constants import Const as C
33 from sat.memory import memory 33 from sat.memory import memory
34 from sat.memory import cache 34 from sat.memory import cache
35 from sat.tools import trigger 35 from sat.tools import async_trigger as trigger
36 from sat.tools import utils 36 from sat.tools import utils
37 from sat.tools.common import dynamic_import 37 from sat.tools.common import dynamic_import
38 from sat.tools.common import regex 38 from sat.tools.common import regex
39 from sat.stdui import ui_contact_list, ui_profile_manager 39 from sat.stdui import ui_contact_list, ui_profile_manager
40 import sat.plugins 40 import sat.plugins