This commit is contained in:
Marco Pesenti Gritti 2006-06-15 18:28:21 -04:00
parent 6a8e863a16
commit 20afcfa475
2 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,7 @@ from sugar.browser import NavigationToolbar
from sugar.presence.PresenceService import PresenceService from sugar.presence.PresenceService import PresenceService
_BROWSER_ACTIVITY_TYPE = "_web_browser_olpc._udp" _BROWSER_ACTIVITY_TYPE = "_web_olpc._udp"
_SERVICE_URI_TAG = "URI" _SERVICE_URI_TAG = "URI"
_SERVICE_TITLE_TAG = "Title" _SERVICE_TITLE_TAG = "Title"

View File

@ -100,6 +100,7 @@ class StartPage(gtk.HBox):
def _on_new_service_adv_cb(self, pservice, uid, stype): def _on_new_service_adv_cb(self, pservice, uid, stype):
if uid is not None: if uid is not None:
real_stype = Service.compose_service_type(stype, uid) real_stype = Service.compose_service_type(stype, uid)
print "Will ask to track uid=%s, stype=%s" % (uid, stype)
self._pservice.track_service_type(real_stype) self._pservice.track_service_type(real_stype)
def _on_activity_announced_cb(self, pservice, service, buddy): def _on_activity_announced_cb(self, pservice, service, buddy):