Fix get_published_values to actually return the dict.

Get rid of the activity title property, we are not using it anyway.
This commit is contained in:
Marco Pesenti Gritti 2006-10-13 13:03:24 +02:00
parent 395472edea
commit 1df5b0020d
2 changed files with 5 additions and 6 deletions

View File

@ -118,9 +118,9 @@ class Activity(gtk.Window):
service = services[0] service = services[0]
addr = service.get_address() addr = service.get_address()
port = service.get_port() port = service.get_port()
properties = { 'title' : service.get_published_value('title') } properties = service.get_published_values()
self._service = self._pservice.share_activity(self, self._service = self._pservice.share_activity(
self._default_type, properties, addr, port) self, self._default_type, properties, addr, port)
else: else:
logging.error('Cannot join the activity') logging.error('Cannot join the activity')
@ -128,9 +128,7 @@ class Activity(gtk.Window):
"""Share the activity on the network.""" """Share the activity on the network."""
logging.debug('Share activity %s on the network.' % self.get_id()) logging.debug('Share activity %s on the network.' % self.get_id())
properties = { 'title' : self.get_title() } self._service = self._pservice.share_activity(self, self._default_type)
self._service = self._pservice.share_activity(self,
self._default_type, properties)
self._shared = True self._shared = True
def execute(self, command, args): def execute(self, command, args):

View File

@ -53,6 +53,7 @@ class Service(gobject.GObject):
def get_published_values(self): def get_published_values(self):
self._pubvals = self._service.getPublishedValues() self._pubvals = self._service.getPublishedValues()
return self._pubvals
def set_published_value(self, key, value): def set_published_value(self, key, value):
if self._pubvals.has_key(key): if self._pubvals.has_key(key):