[sugar] [PATCH] services/presence/server_plugin: Initialize attributes with empty values
Dan Williams
dcbw
Thu May 24 13:44:53 EDT 2007
On Tue, 2007-05-22 at 16:49 +0100, Simon McVittie wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> - ---
> services/presence/server_plugin.py | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
Yeah, looks good
> diff --git a/services/presence/server_plugin.py b/services/presence/server_plugin.py
> index daa31aa..a886fdb 100644
> - --- a/services/presence/server_plugin.py
> +++ b/services/presence/server_plugin.py
> @@ -146,6 +146,12 @@ class ServerPlugin(gobject.GObject):
> self._ip4am = psutils.IP4AddressMonitor.get_instance()
> self._ip4am.connect('address-changed', self._ip4_address_changed_cb)
>
> + self._publish_channel = None
> + self._subscribe_channel = None
> + self._subscribe_members = set()
> + self._subscribe_local_pending = set()
> + self._subscribe_remote_pending = set()
> +
> def _ip4_address_changed_cb(self, ip4am, address):
> _logger.debug("::: IP4 address now %s" % address)
> if address:
> - --
> 1.5.2-rc3.GIT
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net
>
> iD8DBQFGUxDtWSc8zVUw7HYRAtfAAJ9lC7T+LmilSiCIZhW/CmUCZ2/tZQCdEkEf
> bqCL1ofnRk5p9Y5JH9Lv2Kg=
> =j40A
> -----END PGP SIGNATURE-----
> _______________________________________________
> Sugar mailing list
> Sugar at laptop.org
> http://mailman.laptop.org/mailman/listinfo/sugar
More information about the Sugar-devel
mailing list