comparison sat_frontends/quick_frontend/quick_app.py @ 3113:b067736d5099

quick frontend (app): removed workaround for pyjamas
author Goffi <goffi@goffi.org>
date Fri, 17 Jan 2020 15:27:39 +0100
parents 7574f795bd1e
children 02492db1ce39
comparison
equal deleted inserted replaced
3112:91891a108d6f 3113:b067736d5099
16 16
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 from sat.core.log import getLogger 20 from sat.core.log import getLogger
21
22 log = getLogger(__name__)
23
24 from sat.core.i18n import _ 21 from sat.core.i18n import _
25 from sat.core import exceptions 22 from sat.core import exceptions
26 from sat.tools import trigger 23 from sat.tools import trigger
27 from sat.tools.common import data_format 24 from sat.tools.common import data_format
28 25
36 33
37 import sys 34 import sys
38 from collections import OrderedDict 35 from collections import OrderedDict
39 import time 36 import time
40 37
41 try: 38
42 # FIXME: to be removed when an acceptable solution is here 39 log = getLogger(__name__)
43 str("") # XXX: unicode doesn't exist in pyjamas
44 except (
45 TypeError,
46 AttributeError,
47 ): # Error raised is not the same depending on pyjsbuild options
48 str = str
49 40
50 41
51 class ProfileManager(object): 42 class ProfileManager(object):
52 """Class managing all data relative to one profile, and plugging in mechanism""" 43 """Class managing all data relative to one profile, and plugging in mechanism"""
53 44