summaryrefslogtreecommitdiff
path: root/src/roster.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-02-02 00:51:34 +0100
committermathieui <mathieui@mathieui.net>2011-02-02 00:51:34 +0100
commit01f3409505a6d0a0459b79f2d9c3895cd7078a70 (patch)
tree741f81f2a46accf44df6341e38b17b5a1465aefc /src/roster.py
parent89f337a4573ebbca513103340c9400b97950745c (diff)
downloadpoezio-01f3409505a6d0a0459b79f2d9c3895cd7078a70.tar.gz
poezio-01f3409505a6d0a0459b79f2d9c3895cd7078a70.tar.bz2
poezio-01f3409505a6d0a0459b79f2d9c3895cd7078a70.tar.xz
poezio-01f3409505a6d0a0459b79f2d9c3895cd7078a70.zip
fixed #2115
Diffstat (limited to 'src/roster.py')
-rw-r--r--src/roster.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/roster.py b/src/roster.py
index 97975d33..5f927173 100644
--- a/src/roster.py
+++ b/src/roster.py
@@ -134,6 +134,15 @@ class Roster(object):
log.debug('folded:%s\n' %folded_groups)
config.set_and_save('folded_roster_groups', folded_groups, 'var')
+ def get_nb_connected_contacts(self):
+ """
+ Return the number of contacts connected
+ """
+ length = 0
+ for group in self._roster_groups:
+ length += group.get_nb_connected_contacts()
+ return length
+
def __len__(self):
"""
Return the number of line that would be printed