comparison src/browser/sat_browser/panels.py @ 549:cd56f2b0e85b

browser_side: disable OTR if the browser is too old to offer crypto.getRandomValues (CSPRNG)
author souliane <souliane@mailoo.org>
date Wed, 17 Sep 2014 17:15:03 +0200
parents d02335553b5d
children 77372641e05d
comparison
equal deleted inserted replaced
548:530f3fc3e3d7 549:cd56f2b0e85b
1119 return 1119 return
1120 self.target = target 1120 self.target = target
1121 self.type = type_ 1121 self.type = type_
1122 1122
1123 # FIXME: temporary dirty initialization to display the OTR state 1123 # FIXME: temporary dirty initialization to display the OTR state
1124 header_info = host.plugins['otr'].getInfoText() if type_ == 'one2one' else None 1124 header_info = host.plugins['otr'].getInfoText() if (type_ == 'one2one' and 'otr' in host.plugins) else None
1125 1125
1126 base_widget.LiberviaWidget.__init__(self, host, title=target.bare, info=header_info, selectable=True) 1126 base_widget.LiberviaWidget.__init__(self, host, title=target.bare, info=header_info, selectable=True)
1127 self.__body = AbsolutePanel() 1127 self.__body = AbsolutePanel()
1128 self.__body.setStyleName('chatPanel_body') 1128 self.__body.setStyleName('chatPanel_body')
1129 chat_area = HorizontalPanel() 1129 chat_area = HorizontalPanel()