moving from _full_access_name to callbacks

This commit is contained in:
Mose Müller
2023-08-02 12:06:19 +02:00
parent b67c0f9da3
commit 460be17ecb
5 changed files with 671 additions and 488 deletions

View File

@@ -0,0 +1,13 @@
from typing import Any
from pyDataInterface import DataService
def emit(self: Any, parent_path: str, name: str, value: Any) -> None:
if isinstance(value, DataService):
value = value.serialize()
print(f"{parent_path}.{name} = {value}")
DataService._emit_notification = emit # type: ignore