From b400b4bfea9f1fb69ffbe3183b45e77b94d619a6 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Mon, 19 Mar 2012 21:32:26 +0100 Subject: [PATCH] [RigoDaemon] rename is_exclusive() to exclusive() --- rigo/RigoDaemon/app.py | 2 +- rigo/RigoDaemon/dbus/org.sabayon.Rigo.xml | 2 +- rigo/rigo_app.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rigo/RigoDaemon/app.py b/rigo/RigoDaemon/app.py index dea96c139..0b749185f 100755 --- a/rigo/RigoDaemon/app.py +++ b/rigo/RigoDaemon/app.py @@ -594,7 +594,7 @@ class RigoDaemonService(dbus.service.Object): @dbus.service.method(BUS_NAME, in_signature='', out_signature='b') - def is_exclusive(self): + def exclusive(self): """ Return whether RigoDaemon is running in with Entropy Resources acquired in exclusive mode. diff --git a/rigo/RigoDaemon/dbus/org.sabayon.Rigo.xml b/rigo/RigoDaemon/dbus/org.sabayon.Rigo.xml index f8855b6cb..4bfaa80ef 100644 --- a/rigo/RigoDaemon/dbus/org.sabayon.Rigo.xml +++ b/rigo/RigoDaemon/dbus/org.sabayon.Rigo.xml @@ -19,7 +19,7 @@ - + diff --git a/rigo/rigo_app.py b/rigo/rigo_app.py index bfc4fad06..d14045780 100644 --- a/rigo/rigo_app.py +++ b/rigo/rigo_app.py @@ -755,14 +755,14 @@ class RigoServiceController(GObject.Object): self._entropy_bus, dbus_interface=self.DBUS_INTERFACE).activity() - def is_exclusive(self): + def exclusive(self): """ Return whether RigoDaemon is running in with Entropy Resources acquired in exclusive mode. """ return dbus.Interface( self._entropy_bus, - dbus_interface=self.DBUS_INTERFACE).is_exclusive() + dbus_interface=self.DBUS_INTERFACE).exclusive() def _release_local_resources(self): """ @@ -2150,7 +2150,7 @@ class Rigo(Gtk.Application): # check whether RigoDaemon is running in excluive mode # and ignore non-atomicity here (failing with error # is acceptable) - if not self._service.is_exclusive(): + if not self._service.exclusive(): self._show_ok_dialog( None, escape_markup(_("Rigo")),