More fixes
This commit is contained in:
parent
0660a72a34
commit
7300b8e429
@ -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
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user