Missing includes
This commit is contained in:
parent
42feca7cb3
commit
8a2cef6a4f
@ -1,6 +1,11 @@
|
|||||||
MODEL_SERVICE_TYPE = "_olpc_model._tcp"
|
MODEL_SERVICE_TYPE = "_olpc_model._tcp"
|
||||||
MODEL_SERVICE_PORT = 6300
|
MODEL_SERVICE_PORT = 6300
|
||||||
|
|
||||||
|
import xmlrpclib
|
||||||
|
|
||||||
|
from sugar.p2p.Service import Service
|
||||||
|
import sugar.p2p.network
|
||||||
|
|
||||||
class RemoteModel:
|
class RemoteModel:
|
||||||
def __init__(self, service):
|
def __init__(self, service):
|
||||||
self._service = service
|
self._service = service
|
||||||
@ -30,6 +35,8 @@ class LocalModel:
|
|||||||
self._model_id = model_id
|
self._model_id = model_id
|
||||||
self._values = {}
|
self._values = {}
|
||||||
|
|
||||||
|
self._setup_service()
|
||||||
|
|
||||||
def get_value(self, key):
|
def get_value(self, key):
|
||||||
return self._values[key]
|
return self._values[key]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user