Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@sugarlabs.org>2009-08-01 16:29:36 (GMT)
committer Tomeu Vizoso <tomeu@sugarlabs.org>2009-08-01 16:29:36 (GMT)
commitc0de35654c38efd3d7924b7ad2aa41107261f0b6 (patch)
tree698eb87526cbf9230b9c11b478c844c0c3a73b57
parent2953a27c88a8f71a2a8ddc8ffdf95957d61f1090 (diff)
parent71df9fadd59ea5cc08a414f5d25a0135395533e5 (diff)
Merge branch 'master' of git://dev.laptop.org/users/mstone/sugar
-rw-r--r--src/jarabe/view/service.py19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/jarabe/view/service.py b/src/jarabe/view/service.py
index df00ba6..ef225bf 100644
--- a/src/jarabe/view/service.py
+++ b/src/jarabe/view/service.py
@@ -29,8 +29,6 @@ _DBUS_SHELL_IFACE = "org.laptop.Shell"
_DBUS_OWNER_IFACE = "org.laptop.Shell.Owner"
_DBUS_PATH = "/org/laptop/Shell"
-_DBUS_RAINBOW_IFACE = "org.laptop.security.Rainbow"
-
class UIService(dbus.service.Object):
"""Provides d-bus service to script the shell's operations
@@ -50,8 +48,6 @@ class UIService(dbus.service.Object):
anything other than add_bundle
"""
- _rainbow = None
-
def __init__(self):
bus = dbus.SessionBus()
bus_name = dbus.service.BusName(_DBUS_SERVICE, bus=bus)
@@ -123,22 +119,9 @@ class UIService(dbus.service.Object):
def _owner_icon_changed_cb(self, new_icon):
self.IconChanged(dbus.ByteArray(new_icon))
- def _get_rainbow_service(self):
- """Lazily initializes an interface to the Rainbow security daemon."""
- if self._rainbow is None:
- system_bus = dbus.SystemBus()
- obj = system_bus.get_object(_DBUS_RAINBOW_IFACE, '/',
- follow_name_owner_changes=True)
- self._rainbow = dbus.Interface(obj,
- dbus_interface=_DBUS_RAINBOW_IFACE)
- return self._rainbow
-
@dbus.service.signal(_DBUS_OWNER_IFACE, signature="s")
def CurrentActivityChanged(self, activity_id):
- if os.path.exists('/etc/olpc-security'):
- self._get_rainbow_service().ChangeActivity(
- activity_id,
- dbus_interface=_DBUS_RAINBOW_IFACE)
+ pass
def _cur_activity_changed_cb(self, shell_model, new_activity):
new_id = ""