From 30a50bd9fc2d2f0e794b7dafca7b7d8181defd0a Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 23 Apr 2007 12:47:50 -0400 Subject: [PATCH] Add test allow_offline_iface to get_instance() --- sugar/presence/presenceservice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sugar/presence/presenceservice.py b/sugar/presence/presenceservice.py index ce5fbc52..cd5db0ca 100644 --- a/sugar/presence/presenceservice.py +++ b/sugar/presence/presenceservice.py @@ -430,10 +430,10 @@ class _MockPresenceService(gobject.GObject): return None _ps = None -def get_instance(): +def get_instance(allow_offline_iface=False): """Retrieve this process' view of the PresenceService""" global _ps if not _ps: - _ps = PresenceService() + _ps = PresenceService(allow_offline_iface) return _ps