diff options
author | mathieui <mathieui@mathieui.net> | 2017-10-12 00:01:41 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2017-10-12 00:01:41 +0200 |
commit | 621b966528d46a483675439c3e8242ff622cd123 (patch) | |
tree | 1d3cda1ed9c38ae172d3ab0d39b4ea0ec1b81c4e | |
parent | dd8037faa517dd26c22ccad9b88e3a6d5cebee9b (diff) | |
download | poezio-621b966528d46a483675439c3e8242ff622cd123.tar.gz poezio-621b966528d46a483675439c3e8242ff622cd123.tar.bz2 poezio-621b966528d46a483675439c3e8242ff622cd123.tar.xz poezio-621b966528d46a483675439c3e8242ff622cd123.zip |
Fix a pylint complaint
-rw-r--r-- | poezio/tabs/conversationtab.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py index 8c128797..08c466ff 100644 --- a/poezio/tabs/conversationtab.py +++ b/poezio/tabs/conversationtab.py @@ -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 |