comparison src/core/sat_main.py @ 1032:b262ae6d53af

stdui: add ui_profile_manager to interact with frontends when profile authentication is needed
author souliane <souliane@mailoo.org>
date Wed, 07 May 2014 16:03:38 +0200
parents 15f43b54d697
children 6e975c6b0faf
comparison
equal deleted inserted replaced
1031:e90125d07072 1032:b262ae6d53af
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.misc import TriggerManager
36 from sat.stdui import ui_contact_list 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
41 41
144 def _postMemoryInit(self, ignore): 144 def _postMemoryInit(self, ignore):
145 """Method called after memory initialization is done""" 145 """Method called after memory initialization is done"""
146 log.info(_("Memory initialised")) 146 log.info(_("Memory initialised"))
147 self._import_plugins() 147 self._import_plugins()
148 ui_contact_list.ContactList(self) 148 ui_contact_list.ContactList(self)
149 ui_profile_manager.ProfileManager(self)
149 self._initialised.callback(None) 150 self._initialised.callback(None)
150 151
151 def _import_plugins(self): 152 def _import_plugins(self):
152 """Import all plugins found in plugins directory""" 153 """Import all plugins found in plugins directory"""
153 import sat.plugins 154 import sat.plugins