comparison src/plugins/plugin_xep_0049.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 93359853e4bc
children 069ad98b360d
comparison
equal deleted inserted replaced
992:f51a1895275c 993:301b342c697a
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.i18n import _ 20 from sat.core.i18n import _
21 from logging import debug, info, error, warning 21 from sat.core.log import getLogger
22 log = getLogger(__name__)
22 from wokkel import compat 23 from wokkel import compat
23 from twisted.words.xish import domish 24 from twisted.words.xish import domish
24 25
25 26
26 27
38 39
39 class XEP_0049(object): 40 class XEP_0049(object):
40 NS_PRIVATE = 'jabber:iq:private' 41 NS_PRIVATE = 'jabber:iq:private'
41 42
42 def __init__(self, host): 43 def __init__(self, host):
43 info(_("Plugin XEP-0049 initialization")) 44 log.info(_("Plugin XEP-0049 initialization"))
44 self.host = host 45 self.host = host
45 46
46 def privateXMLStore(self, element, profile_key): 47 def privateXMLStore(self, element, profile_key):
47 """Store private data 48 """Store private data
48 @param element: domish.Element to store (must have a namespace) 49 @param element: domish.Element to store (must have a namespace)