diff src/core/sat_main.py @ 2167:4b78b4c7f805

core, frontends: various fixes for Libervia: - quick_app: don't fail when we can't get autodisconnect parameter - bridge: removed useless BridgeFrontend parent class - use of TypeError, unicode and list to workaround Pyjamas incompatibilities
author Goffi <goffi@goffi.org>
date Sun, 26 Feb 2017 18:23:01 +0100
parents bca699faf416
children 255830fdb80b
line wrap: on
line diff
--- a/src/core/sat_main.py	Sun Feb 26 18:20:27 2017 +0100
+++ b/src/core/sat_main.py	Sun Feb 26 18:23:01 2017 +0100
@@ -36,7 +36,6 @@
 from sat.stdui import ui_contact_list, ui_profile_manager
 import sat.plugins
 from glob import glob
-from uuid import uuid4
 import sys
 import os.path
 import uuid
@@ -733,7 +732,7 @@
         """
         callback_id = kwargs.pop('force_id', None)
         if callback_id is None:
-            callback_id = str(uuid4())
+            callback_id = str(uuid.uuid4())
         else:
             if callback_id in self._cb_map:
                 raise exceptions.ConflictError(_(u"id already registered"))