stdui: add ui_profile_manager to interact with frontends when profile authentication is needed
This commit is contained in:
parent
f3b0b52014
commit
67a605c1c8
2 changed files with 110 additions and 1 deletions
|
|
@ -110,6 +110,10 @@ class Const(object):
|
|||
LOG_LEVELS = (LOG_LVL_DEBUG, LOG_LVL_INFO, LOG_LVL_WARNING, LOG_LVL_ERROR, LOG_LVL_CRITICAL)
|
||||
|
||||
|
||||
# HARD-CODED ACTIONS IDS
|
||||
AUTHENTICATE_PROFILE_ID = u'b03bbfa8-a4ae-4734-a248-06ce6c7cf562'
|
||||
|
||||
|
||||
## Misc ##
|
||||
SAVEFILE_DATABASE = APP_NAME_FILE + ".db"
|
||||
IQ_SET = '/iq[@type="set"]'
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ from sat.core.constants import Const as C
|
|||
from sat.memory.memory import Memory
|
||||
from sat.memory.crypto import PasswordHasher
|
||||
from sat.tools.misc import TriggerManager
|
||||
from sat.stdui import ui_contact_list
|
||||
from sat.stdui import ui_contact_list, ui_profile_manager
|
||||
from glob import glob
|
||||
from uuid import uuid4
|
||||
import sys
|
||||
|
|
@ -146,6 +146,7 @@ class SAT(service.Service):
|
|||
log.info(_("Memory initialised"))
|
||||
self._import_plugins()
|
||||
ui_contact_list.ContactList(self)
|
||||
ui_profile_manager.ProfileManager(self)
|
||||
self._initialised.callback(None)
|
||||
|
||||
def _import_plugins(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue