comparison frontends/src/primitivus/xmlui.py @ 1010:73a0b7f94674

primitivus: use of new logging system: - default output is \\memory - logs can be seen with :messages command - now useless writeLog method has been removed
author Goffi <goffi@goffi.org>
date Mon, 05 May 2014 20:12:19 +0200
parents 68faf7d77a42
children ad023e60da8c
comparison
equal deleted inserted replaced
1009:d1084f7e56a5 1010:73a0b7f94674
19 19
20 from sat.core.i18n import _ 20 from sat.core.i18n import _
21 import urwid 21 import urwid
22 import copy 22 import copy
23 from urwid_satext import sat_widgets 23 from urwid_satext import sat_widgets
24 from logging import debug, info, warning, error 24 from sat.core.log import getLogger
25 log = getLogger(__name__)
25 from xml.dom import minidom 26 from xml.dom import minidom
26 from sat_frontends.tools import xmlui 27 from sat_frontends.tools import xmlui
27 28
28 29
29 class PrimitivusEvents(object): 30 class PrimitivusEvents(object):
72 elif style == 'plain': 73 elif style == 'plain':
73 div_char = u'█' 74 div_char = u'█'
74 elif style == 'blank': 75 elif style == 'blank':
75 div_char = ' ' 76 div_char = ' '
76 else: 77 else:
77 warning(_("Unknown div_char")) 78 log.warning(_("Unknown div_char"))
78 div_char = u'─' 79 div_char = u'─'
79 80
80 urwid.Divider.__init__(self, div_char) 81 urwid.Divider.__init__(self, div_char)
81 82
82 83