Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-08-30 16:30:01 (GMT)
committer Tomeu Vizoso <tomeu.vizoso@collabora.co.uk>2010-08-30 16:30:01 (GMT)
commit770f90037a174f1cefa76fbef4c242f6030099ee (patch)
treef92926ac1740bae620e545c7720c94612473e975 /extensions
parentd0675f45139fe17eb666c938ae0882d799b48174 (diff)
Listen to changes to the nick and jabber server settings and update MC appropriately
Diffstat (limited to 'extensions')
-rw-r--r--extensions/cpsection/network/model.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/extensions/cpsection/network/model.py b/extensions/cpsection/network/model.py
index e1c3dab..2713f23 100644
--- a/extensions/cpsection/network/model.py
+++ b/extensions/cpsection/network/model.py
@@ -45,25 +45,8 @@ def set_jabber(server):
client = gconf.client_get_default()
client.set_string('/desktop/sugar/collaboration/jabber_server', server)
- _restart_jabber()
return 0
-def _restart_jabber():
- """Call Sugar Presence Service to restart Telepathy CMs.
-
- This allows restarting the jabber server connection when we change it.
- """
- _PS_SERVICE = "org.laptop.Sugar.Presence"
- _PS_INTERFACE = "org.laptop.Sugar.Presence"
- _PS_PATH = "/org/laptop/Sugar/Presence"
- bus = dbus.SessionBus()
- try:
- ps = dbus.Interface(bus.get_object(_PS_SERVICE, _PS_PATH),
- _PS_INTERFACE)
- except dbus.DBusException:
- raise ReadError('%s service not available' % _PS_SERVICE)
- ps.RestartServerConnection()
-
def get_radio():
try:
bus = dbus.SystemBus()