comparison src/plugins/plugin_xep_0085.py @ 993:301b342c697a

core: use of the new core.log module: /!\ this is a massive refactoring and was largely automated, it probably did bring some bugs /!\
author Goffi <goffi@goffi.org>
date Sat, 19 Apr 2014 19:19:19 +0200
parents c897c8d321b3
children 5ff9f9af9d1f
comparison
equal deleted inserted replaced
992:f51a1895275c 993:301b342c697a
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.i18n import _ 20 from sat.core.i18n import _
21 from sat.core.constants import Const as C 21 from sat.core.constants import Const as C
22 from sat.core import exceptions 22 from sat.core import exceptions
23 from logging import info 23 from sat.core.log import getLogger
24 log = getLogger(__name__)
24 from wokkel import disco, iwokkel 25 from wokkel import disco, iwokkel
25 from zope.interface import implements 26 from zope.interface import implements
26 from twisted.words.protocols.jabber.jid import JID 27 from twisted.words.protocols.jabber.jid import JID
27 try: 28 try:
28 from twisted.words.protocols.xmlstream import XMPPHandler 29 from twisted.words.protocols.xmlstream import XMPPHandler
89 'param_name': PARAM_NAME, 90 'param_name': PARAM_NAME,
90 'param_label': _('Enable chat state notifications') 91 'param_label': _('Enable chat state notifications')
91 } 92 }
92 93
93 def __init__(self, host): 94 def __init__(self, host):
94 info(_("Chat State Notifications plugin initialization")) 95 log.info(_("Chat State Notifications plugin initialization"))
95 self.host = host 96 self.host = host
96 97
97 # parameter value is retrieved before each use 98 # parameter value is retrieved before each use
98 host.memory.updateParams(self.params) 99 host.memory.updateParams(self.params)
99 100