# HG changeset patch # User souliane # Date 1402355713 -7200 # Node ID 830b50593597d286f9844fd20ff171d6c93176ed # Parent 97c72fe4a5f2dcc7224f39258e9b2b37fa4bfb01 browser_side: fixes issues from the refactoring diff -r 97c72fe4a5f2 -r 830b50593597 src/browser/libervia_main.py --- a/src/browser/libervia_main.py Mon Jun 09 22:15:26 2014 +0200 +++ b/src/browser/libervia_main.py Tue Jun 10 01:15:13 2014 +0200 @@ -515,8 +515,8 @@ self._personalEventCb(*event_data) del self.init_cache - def _getProfileJidCB(self, jid): - self.whoami = jid.JID(jid) + def _getProfileJidCB(self, jid_s): + self.whoami = jid.JID(jid_s) #we can now ask our status self.bridge.call('getPresenceStatuses', self._getPresenceStatusesCb) #the rooms where we are diff -r 97c72fe4a5f2 -r 830b50593597 src/browser/sat_browser/base_panels.py --- a/src/browser/sat_browser/base_panels.py Mon Jun 09 22:15:26 2014 +0200 +++ b/src/browser/sat_browser/base_panels.py Tue Jun 10 01:15:13 2014 +0200 @@ -55,9 +55,9 @@ _msg_class.append("chat_text_mymess") HTMLPanel.__init__(self, "%(timestamp)s %(nick)s %(msg)s" % {"timestamp": _date.strftime("%H:%M"), - "nick": "[%s]" % html_tools.sanitize(nick), + "nick": "[%s]" % html_tools.html_sanitize(nick), "msg_class": ' '.join(_msg_class), - "msg": strings.addURLToText(html_tools.sanitize(msg)) if not xhtml else html_tools.inlineRoot(xhtml)} # FIXME: images and external links must be removed according to preferences + "msg": strings.addURLToText(html_tools.html_sanitize(msg)) if not xhtml else html_tools.inlineRoot(xhtml)} # FIXME: images and external links must be removed according to preferences ) self.setStyleName('chatText') @@ -101,7 +101,7 @@ def _refresh(self): state = (' %s' % C.MUC_USER_STATES[self._state]) if self._state else '' special = "" if len(self.special) == 0 else " %s" % self.special - self.setHTML("
%s%s%s
" % (html_tools.sanitize(self.nick), special, state)) + self.setHTML("
%s%s%s
" % (html_tools.html_sanitize(self.nick), special, state)) class OccupantsList(AbsolutePanel): @@ -480,7 +480,7 @@ if self.options['listen_click']: ClickHandler.__init__(self) KeyboardHandler.__init__(self) - strproc = lambda text: html_tools.sanitize(html_tools.html_strip(text)) if self.options['no_xhtml'] else html_tools.html_strip(text) + strproc = lambda text: html_tools.html_sanitize(html_tools.html_strip(text)) if self.options['no_xhtml'] else html_tools.html_strip(text) BaseTextEditor.__init__(self, content, strproc, modifiedCb, afterEditCb) self.textarea = self.display = None