Mercurial > libervia-backend
comparison src/core/sat_main.py @ 1374:0befb14ecf62
renamed tools.misc to tools.trigger
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 19 Mar 2015 19:44:37 +0100 |
parents | ba87b940f07a |
children | 3a20312d4012 |
comparison
equal
deleted
inserted
replaced
1373:6d0e01809893 | 1374:0befb14ecf62 |
---|---|
30 from sat.core.log import getLogger | 30 from sat.core.log import getLogger |
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.memory import Memory | 33 from sat.memory.memory import Memory |
34 from sat.memory.crypto import PasswordHasher | 34 from sat.memory.crypto import PasswordHasher |
35 from sat.tools.misc import TriggerManager | 35 from sat.tools import trigger |
36 from sat.stdui import ui_contact_list, ui_profile_manager | 36 from sat.stdui import ui_contact_list, ui_profile_manager |
37 from glob import glob | 37 from glob import glob |
38 from uuid import uuid4 | 38 from uuid import uuid4 |
39 import sys | 39 import sys |
40 import os.path | 40 import os.path |
70 self._initialised = defer.Deferred() | 70 self._initialised = defer.Deferred() |
71 self.profiles = {} | 71 self.profiles = {} |
72 self.plugins = {} | 72 self.plugins = {} |
73 | 73 |
74 self.memory = Memory(self) | 74 self.memory = Memory(self) |
75 self.trigger = TriggerManager() # trigger are used to change SàT behaviour | 75 self.trigger = trigger.TriggerManager() # trigger are used to change SàT behaviour |
76 | 76 |
77 try: | 77 try: |
78 self.bridge = DBusBridge() | 78 self.bridge = DBusBridge() |
79 except exceptions.BridgeInitError: | 79 except exceptions.BridgeInitError: |
80 log.error(u"Bridge can't be initialised, can't start SàT core") | 80 log.error(u"Bridge can't be initialised, can't start SàT core") |