Merge lp:~rainct/zeitgeist/922620 into lp:~zeitgeist/zeitgeist/bluebird
Proposed by
Siegfried Gevatter
Status: | Merged |
---|---|
Merged at revision: | 386 |
Proposed branch: | lp:~rainct/zeitgeist/922620 |
Merge into: | lp:~zeitgeist/zeitgeist/bluebird |
Diff against target: |
279 lines (+94/-28) 4 files modified
python/client.py (+33/-21) test/dbus/blacklist-test.py (+18/-5) test/dbus/monitor-test.py (+29/-0) test/dbus/testutils.py (+14/-2) |
To merge this branch: | bzr merge lp:~rainct/zeitgeist/922620 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zeitgeist Framework Team | Pending | ||
Review via email: mp+91920@code.launchpad.net |
To post a comment you must log in.
Ok I had to learn this the hard way since you said it is just going to be
more...
Anyhow looks fine for me
On Tue, Feb 7, 2012 at 10:12 PM, Siegfried Gevatter <email address hidden>wrote:
> Siegfried Gevatter has proposed merging lp:~rainct/zeitgeist/922620 into gnals and testDataSourceS ignals" /bugs.launchpad .net/zeitgeist/ +bug/922620 /code.launchpad .net/~rainct/ zeitgeist/ 922620/ +merge/ 91920 /code.launchpad .net/~rainct/ zeitgeist/ 922620/ +merge/ 91920 getLogger( "zeitgeist. client" ) object) : callbacks = None callbacks = None introspection_ xml): _when_needed: ().get_ object( iface.requested _bus_name, ).get_object( iface.requested _bus_name, name_owner_ changes= True) self.__ proxy, interface_ name) introspection_ data() callbacks. add((signal, callback)) proxy.connect_ to_signal( proxy.connect_ to_signal( self.__ interface_ name, t_callbacks = set() _callbacks = set() callbacks = set() changed( connection_ name):
> lp:zeitgeist.
>
> Requested reviews:
> Zeitgeist Framework Team (zeitgeist)
> Related bugs:
> Bug #922620 in Zeitgeist Framework: "Fix failing test cases:
> testBlacklistSi
> https:/
>
> For more details, see:
> https:/
> --
> https:/
> Your team Zeitgeist Framework Team is requested to review the proposed
> merge of lp:~rainct/zeitgeist/922620 into lp:zeitgeist.
>
> === modified file 'python/client.py'
> --- python/client.py 2011-10-29 13:31:12 +0000
> +++ python/client.py 2012-02-07 21:11:18 +0000
> @@ -40,6 +40,15 @@
>
> log = logging.
>
> +# This is here so testutils.py can override it with a private bus
> connection
> +global session_bus
> +session_bus = dbus.SessionBus()
> +def get_bus():
> + return session_bus
> +def _set_bus(bus):
> + global session_bus
> + session_bus = bus
> +
> class _DBusInterface(
> """Wrapper around dbus.Interface adding convenience methods."""
>
> @@ -47,7 +56,6 @@
> # that here because otherwise all instances would share their state.
> _disconnect_
> _reconnect_
> - _generic_callbacks = None
>
> @staticmethod
> def get_members(
> @@ -69,8 +77,9 @@
> def reconnect(self):
> if not self._reconnect
> return
> - self.__proxy = dbus.SessionBus
> - self.__
> self.__object_path)
> + self.__proxy = get_bus(
> + self.__
> self.__object_path,
> + follow_
> self.__iface = dbus.Interface(
> self.__
> self._load_
>
> @@ -131,8 +140,7 @@
> self.reconnect()
> if signal not in self.__signals:
> raise TypeError("Unknown signal name: %s" % signal)
> - self._generic_
> - self.__
> + return self.__
> signal,
> callback,
> dbus_interface=
> @@ -169,7 +177,6 @@
>
> self._disconnec
> self._reconnect
> - self._generic_
>
> # Listen to (dis)connection notifications, for connect_exit
> and connect_join
> def name_owner_
> @@ -181,15 +188,9 @@
> retu...