diff options
Diffstat (limited to 'src/roster.py')
-rw-r--r-- | src/roster.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/roster.py b/src/roster.py index 51468aad..b306bd07 100644 --- a/src/roster.py +++ b/src/roster.py @@ -327,5 +327,10 @@ class RosterGroup(object): """Return the number of connected contacts""" return len([1 for contact in self.contacts if len(contact)]) +def create_roster(): + "Create the global roster object" + global roster + roster = Roster() + # Shared roster object -roster = Roster() +roster = None |