Author: liori Date: 2007-06-27 02:51:38 +0200 (Wed, 27 Jun 2007) New Revision: 8323
Modified: trunk/src/common/dataforms.py trunk/src/common/logger.py trunk/src/roster_window.py Log: Comments here and there
Modified: trunk/src/common/dataforms.py =================================================================== --- trunk/src/common/dataforms.py 2007-06-27 00:51:12 UTC (rev 8322) +++ trunk/src/common/dataforms.py 2007-06-27 00:51:38 UTC (rev 8323) @@ -76,7 +76,9 @@ return SimpleDataForm(extend=node)
class DataField(ExtendedNode): - """ Keeps data about one field - var, field type, labels, instructions... """ + """ Keeps data about one field - var, field type, labels, instructions... + Base class for different kinds of fields. Use Field() function to + construct one of these. """ def __init__(self, typ=None, var=None, value=None, label=None, desc=None, required=False, options=None, extend=None):
Modified: trunk/src/common/logger.py =================================================================== --- trunk/src/common/logger.py 2007-06-27 00:51:12 UTC (rev 8322) +++ trunk/src/common/logger.py 2007-06-27 00:51:38 UTC (rev 8323) @@ -13,6 +13,8 @@ ## GNU General Public License for more details. ##
+''' This module allows to access the on-disk database of logs. ''' + import os import sys import time @@ -627,3 +629,7 @@ for result in results: answer[result[0]] = self.convert_api_values_to_human_transport_type(result[1]) return answer + + # initial interface for accessing logs of stored caps + def get_stored_caps(self): pass + def add_caps_entry(self): pass
Modified: trunk/src/roster_window.py =================================================================== --- trunk/src/roster_window.py 2007-06-27 00:51:12 UTC (rev 8322) +++ trunk/src/roster_window.py 2007-06-27 00:51:38 UTC (rev 8323) @@ -65,6 +65,7 @@ '''Class for main window of the GTK+ interface'''
def get_account_iter(self, name): + ''' Returns a gtk.TreeIter of accounts in roster data model or None ''' model = self.tree.get_model() if model is None: return @@ -79,6 +80,7 @@ return account_iter
def get_group_iter(self, name, account): + ''' Returns a gtk.TreeIter of groups in roster data model or None ''' model = self.tree.get_model() root = self.get_account_iter(account) group_iter = model.iter_children(root) @@ -164,10 +166,12 @@ self.tree.set_cursor(path)
def add_account_to_roster(self, account): + ''' Add an account to roster data model. ''' model = self.tree.get_model() if self.get_account_iter(account): return
+ # if we merge accounts... if self.regroup: show = helpers.get_global_show() model.append(None, [self.jabber_state_images['16'][show],