From 30a50bd9fc2d2f0e794b7dafca7b7d8181defd0a Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Mon, 23 Apr 2007 16:47:50 +0000 Subject: Add test allow_offline_iface to get_instance() --- (limited to 'sugar/presence/presenceservice.py') diff --git a/sugar/presence/presenceservice.py b/sugar/presence/presenceservice.py index ce5fbc5..cd5db0c 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 -- cgit v0.9.1