Commit 621b9665 authored by mathieui's avatar mathieui

Fix a pylint complaint

parent dd8037fa
......@@ -66,7 +66,6 @@ class ConversationTab(OneToOneTab):
' allow you to see his presence, and allow them to'
' see your presence.',
shortdesc='Add a user to your roster.')
self.resize()
self.update_commands()
self.update_keys()
......@@ -74,6 +73,9 @@ class ConversationTab(OneToOneTab):
def general_jid(self):
return safeJID(self.name).bare
def get_info_header(self):
raise NotImplementedError
@staticmethod
def add_information_element(plugin_name, callback):
"""
......@@ -383,10 +385,14 @@ class DynamicConversationTab(ConversationTab):
self.name = safeJID(jid).bare
if resource:
self.lock(resource)
self.info_header = windows.DynamicConversationInfoWin()
ConversationTab.__init__(self, core, jid)
self.info_header = windows.DynamicConversationInfoWin()
self.register_command('unlock', self.unlock_command,
shortdesc='Unlock the conversation from a particular resource.')
self.resize()
def get_info_header(self):
return self.info_header
def lock(self, resource):
"""
......@@ -486,6 +492,9 @@ class StaticConversationTab(ConversationTab):
"""
def __init__(self, core, jid):
assert(safeJID(jid).resource)
self.info_header = windows.ConversationInfoWin()
ConversationTab.__init__(self, core, jid)
self.info_header = windows.ConversationInfoWin()
self.resize()
def get_info_header(self):
return self.info_header
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment