Do not assign {} to properties, if you do apparently

the table is not recreated on subsequent calls and
that obviously cause funny issues.
This commit is contained in:
Marco Pesenti Gritti 2006-06-19 12:38:25 -04:00
parent 73c94c7bfb
commit 918c695b07

View File

@ -482,7 +482,7 @@ class PresenceService(gobject.GObject):
raise ValueError("service was not a valid service object.") raise ValueError("service was not a valid service object.")
self.register_service(service) self.register_service(service)
def share_activity(self, activity, stype, properties={}, address=None, port=None): def share_activity(self, activity, stype, properties=None, address=None, port=None):
"""Convenience function to share an activity with other buddies.""" """Convenience function to share an activity with other buddies."""
if not self._started: if not self._started:
raise RuntimeError("presence service must be started first.") raise RuntimeError("presence service must be started first.")