More fixes

This commit is contained in:
Marco Pesenti Gritti 2006-05-15 15:12:08 -04:00
parent 0660a72a34
commit 7300b8e429
2 changed files with 4 additions and 4 deletions

View File

@ -195,7 +195,7 @@ class BrowserActivity(activity.Activity):
vbox.show() vbox.show()
self._setup_shared(uri) self._setup_shared(self.uri)
def get_embed(self): def get_embed(self):
return self.embed return self.embed

View File

@ -1,5 +1,6 @@
from sugar.p2p.NotificationListener import NotificationListener from sugar.p2p.NotificationListener import NotificationListener
from sugar.p2p import network from sugar.p2p import network
from sugar.p2p.Service import Service
class Notifier: class Notifier:
TYPE = "_olpc_model_notification._udp" TYPE = "_olpc_model_notification._udp"
@ -7,9 +8,8 @@ class Notifier:
PORT = 6300 PORT = 6300
def __init__(self, group, name): def __init__(self, group, name):
service = Service(name, NotificationListener.TYPE, service = Service(name, Notifier.TYPE, Notifier.ADDRESS,
NotificationListener.ADDRESS, Notifier.PORT, True)
NotificationListener.PORT, True)
service.register(group) service.register(group)
address = service.get_address() address = service.get_address()