feat: commenting
This commit is contained in:
@ -71,7 +71,7 @@ class ReplicatedDataFactory(object):
|
||||
|
||||
class ReplicatedDatablock(object):
|
||||
"""
|
||||
Datablock used for replication
|
||||
Datablock definition used for replication
|
||||
"""
|
||||
uuid = None # uuid used as key (string)
|
||||
pointer = None # dcc data ref (DCC type)
|
||||
@ -182,6 +182,7 @@ class ReplicatedDatablock(object):
|
||||
"""
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
def __repr__(self):
|
||||
return "{uuid} - owner: {owner} - type: {type}".format(
|
||||
uuid=self.uuid,
|
||||
|
@ -68,13 +68,6 @@ class Client(object):
|
||||
else:
|
||||
raise TypeError("Type not supported")
|
||||
|
||||
def pull(self,object=None):
|
||||
"""
|
||||
Asynchonous pull
|
||||
Here we want to pull all waiting changes and apply them
|
||||
"""
|
||||
pass
|
||||
|
||||
def unregister(self,object_uuid,clean=False):
|
||||
"""
|
||||
Unregister for replication the given
|
||||
@ -90,6 +83,12 @@ class Client(object):
|
||||
else:
|
||||
raise KeyError("Cannot unregister key")
|
||||
|
||||
def pull(self,object=None):
|
||||
"""
|
||||
Asynchonous pull
|
||||
Here we want to pull all waiting changes and apply them
|
||||
"""
|
||||
pass
|
||||
|
||||
class ClientNetService(threading.Thread):
|
||||
def __init__(self,store_reference=None, factory=None,id="default"):
|
||||
|
@ -26,6 +26,7 @@ class RepSampleData(ReplicatedDatablock):
|
||||
|
||||
return pickle.loads(data)
|
||||
|
||||
|
||||
def dump(self):
|
||||
import json
|
||||
output = {}
|
||||
|
Reference in New Issue
Block a user