summaryrefslogtreecommitdiff
path: root/src/bookmark.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/bookmark.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/bookmark.py')
-rw-r--r--src/bookmark.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/bookmark.py b/src/bookmark.py
index 95d20734..a68cc27a 100644
--- a/src/bookmark.py
+++ b/src/bookmark.py
@@ -1,3 +1,13 @@
+"""
+Bookmarks module
+
+Therein the bookmark class is defined, representing one conference room.
+This object is used to generate elements for both local and remote
+bookmark storage. It can also parse xml Elements.
+
+This module also defines several functions for retrieving and updating
+bookmarks, both local and remote.
+"""
import os
import logging
from sys import version_info
@@ -70,6 +80,7 @@ class Bookmark(object):
config.set_and_save('password', self.password, section=self.jid)
return local
+ @staticmethod
def parse_from_element(el, method=None):
"""
Generate a Bookmark object from a <conference/> element