feat: dependency resolve

feat: bl_datablock as a base class for all bl_implementation

it allow to store uuid as a soft reference during datablock init process
This commit is contained in:
Swann Martinez
2019-08-26 17:27:12 +02:00
parent bcc3515dde
commit b0b16074c6
17 changed files with 95 additions and 63 deletions

View File

@ -58,13 +58,15 @@ class ApplyTimer(Timer):
nodes = operators.client.list(filter=self._type)
for node in nodes:
node_ref = operators.client.get(node)
node_ref = operators.client.get(uuid=node)
if node_ref.state == FETCHED:
operators.client.apply(uuid=node)
return self._timeout
# class CheckNewTimer(Timer):
class Draw(Delayable):
def __init__(self):
@ -93,7 +95,7 @@ class ClientUpdate(Draw):
def execute(self):
if hasattr(operators, "client") and self._client_uuid:
client = operators.client.get(self._client_uuid)
client = operators.client.get(uuid=self._client_uuid)
if client:
client.pointer.update_location()