summaryrefslogtreecommitdiff
path: root/src/tabs/xmltab.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-03-23 00:15:01 +0100
committermathieui <mathieui@mathieui.net>2014-03-23 00:15:01 +0100
commit186803d9a97d7efb089acc470b98293b7e472db5 (patch)
tree89533dc38acddbcfbb34b162974bd29a62c07db3 /src/tabs/xmltab.py
parent918e15d1781fce0fbf2b7b2b047be32163bc4679 (diff)
downloadpoezio-186803d9a97d7efb089acc470b98293b7e472db5.tar.gz
poezio-186803d9a97d7efb089acc470b98293b7e472db5.tar.bz2
poezio-186803d9a97d7efb089acc470b98293b7e472db5.tar.xz
poezio-186803d9a97d7efb089acc470b98293b7e472db5.zip
Fix formatting, some typos, and unused code, and add docstrings
- No idea why subclasses of ConversationTab were working before (info_header was overriden with None in __init__) - Or why the date parsing worked (“Exeception”) - Some more reformatting with pylint indications - Document each module in the tabs module
Diffstat (limited to 'src/tabs/xmltab.py')
-rw-r--r--src/tabs/xmltab.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tabs/xmltab.py b/src/tabs/xmltab.py
index ed099405..a2728586 100644
--- a/src/tabs/xmltab.py
+++ b/src/tabs/xmltab.py
@@ -1,3 +1,10 @@
+"""
+The XMLTab is here for debugging purposes, it shows the incoming and
+outgoing stanzas. It has a few useful functions that can filter stanzas
+in order to only show the relevant ones, and it can also be frozen or
+unfrozen on demand so that the relevant information is not drowned by
+the traffic.
+"""
from gettext import gettext as _
import logging
@@ -168,7 +175,7 @@ class XMLTab(Tab):
def refresh(self):
if self.need_resize:
self.resize()
- log.debug(' TAB Refresh: %s',self.__class__.__name__)
+ log.debug(' TAB Refresh: %s', self.__class__.__name__)
self.text_win.refresh()
self.info_header.refresh(self.filter_type, self.filter, self.text_win)
self.refresh_tab_win()