Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sugar
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-10-13 11:03:24 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-10-13 11:03:24 (GMT)
commit1df5b0020df173a5d15c90aa08167c19455cb6e2 (patch)
tree79429493ee0b1c899bfefcbd59cfbe3e94c7ad49 /sugar
parent395472edea6fe56d48028a65176ea62dcb2ee83a (diff)
Fix get_published_values to actually return the dict.
Get rid of the activity title property, we are not using it anyway.
Diffstat (limited to 'sugar')
-rw-r--r--sugar/activity/Activity.py10
-rw-r--r--sugar/presence/Service.py1
2 files changed, 5 insertions, 6 deletions
diff --git a/sugar/activity/Activity.py b/sugar/activity/Activity.py
index 0b0600f..44c5fdb 100644
--- a/sugar/activity/Activity.py
+++ b/sugar/activity/Activity.py
@@ -118,9 +118,9 @@ class Activity(gtk.Window):
service = services[0]
addr = service.get_address()
port = service.get_port()
- properties = { 'title' : service.get_published_value('title') }
- self._service = self._pservice.share_activity(self,
- self._default_type, properties, addr, port)
+ properties = service.get_published_values()
+ self._service = self._pservice.share_activity(
+ self, self._default_type, properties, addr, port)
else:
logging.error('Cannot join the activity')
@@ -128,9 +128,7 @@ class Activity(gtk.Window):
"""Share the activity on the network."""
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, properties)
+ self._service = self._pservice.share_activity(self, self._default_type)
self._shared = True
def execute(self, command, args):
diff --git a/sugar/presence/Service.py b/sugar/presence/Service.py
index 815d0d7..3b071c3 100644
--- a/sugar/presence/Service.py
+++ b/sugar/presence/Service.py
@@ -53,6 +53,7 @@ class Service(gobject.GObject):
def get_published_values(self):
self._pubvals = self._service.getPublishedValues()
+ return self._pubvals
def set_published_value(self, key, value):
if self._pubvals.has_key(key):