More fixes

master
Marco Pesenti Gritti 18 years ago
parent 0660a72a34
commit 7300b8e429

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

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

Loading…
Cancel
Save