diff --git a/package.json b/package.json index ad4e435..5da3d5f 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.0", "description": "", "scripts": { - "json": "node ./node_modules/@geode/opengeodeweb-microservice/generate_schemas.js opengeodeweb_viewer rpc rpc .", + "json": "npx opengeodeweb-microservice-generate opengeodeweb_viewer rpc rpc .", "test": "npm run json", "build": "npm run json" }, diff --git a/requirements.txt b/requirements.txt index a7f1090..065674a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -61,4 +61,3 @@ wslink==1.12.4 yarl>=1 # via aiohttp -opengeodeweb-microservice==1.*,>=1.0.8 diff --git a/src/opengeodeweb_viewer/rpc/generic/schemas/deregister.py b/src/opengeodeweb_viewer/rpc/generic/schemas/deregister.py index f9c0aee..8a9e662 100644 --- a/src/opengeodeweb_viewer/rpc/generic/schemas/deregister.py +++ b/src/opengeodeweb_viewer/rpc/generic/schemas/deregister.py @@ -4,4 +4,7 @@ @dataclass class Deregister(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str diff --git a/src/opengeodeweb_viewer/rpc/generic/schemas/register.py b/src/opengeodeweb_viewer/rpc/generic/schemas/register.py index e15e699..9a953cf 100644 --- a/src/opengeodeweb_viewer/rpc/generic/schemas/register.py +++ b/src/opengeodeweb_viewer/rpc/generic/schemas/register.py @@ -4,4 +4,7 @@ @dataclass class Register(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str diff --git a/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/color.py b/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/color.py index 87f4735..01f0222 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/color.py +++ b/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/color.py @@ -5,6 +5,9 @@ @dataclass class ColorClass(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + b: int g: int r: int @@ -13,5 +16,8 @@ class ColorClass(DataClassJsonMixin): @dataclass class Color(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + color: ColorClass id: str diff --git a/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/size.py b/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/size.py index d10819a..dd432c0 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/size.py +++ b/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/size.py @@ -4,5 +4,8 @@ @dataclass class Size(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str size: int diff --git a/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/vertex_attribute.py b/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/vertex_attribute.py index b6b7766..64f7c2d 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/vertex_attribute.py +++ b/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/vertex_attribute.py @@ -4,5 +4,8 @@ @dataclass class VertexAttribute(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str name: str diff --git a/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/visibility.py b/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/visibility.py index 78c2b5c..56a629d 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/visibility.py +++ b/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/visibility.py @@ -4,5 +4,8 @@ @dataclass class Visibility(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str visibility: bool diff --git a/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/width.py b/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/width.py index f51023a..eda85e6 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/width.py +++ b/src/opengeodeweb_viewer/rpc/mesh/edges/schemas/width.py @@ -4,5 +4,8 @@ @dataclass class Width(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str width: float diff --git a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/color.py b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/color.py index 87f4735..01f0222 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/color.py +++ b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/color.py @@ -5,6 +5,9 @@ @dataclass class ColorClass(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + b: int g: int r: int @@ -13,5 +16,8 @@ class ColorClass(DataClassJsonMixin): @dataclass class Color(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + color: ColorClass id: str diff --git a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/size.py b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/size.py index 3ed13eb..eb18279 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/size.py +++ b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/size.py @@ -4,5 +4,8 @@ @dataclass class Size(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str size: float diff --git a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_attribute.py b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_attribute.py index b6b7766..64f7c2d 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_attribute.py +++ b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/vertex_attribute.py @@ -4,5 +4,8 @@ @dataclass class VertexAttribute(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str name: str diff --git a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/visibility.py b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/visibility.py index 78c2b5c..56a629d 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/points/schemas/visibility.py +++ b/src/opengeodeweb_viewer/rpc/mesh/points/schemas/visibility.py @@ -4,5 +4,8 @@ @dataclass class Visibility(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str visibility: bool diff --git a/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/color.py b/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/color.py index 87f4735..01f0222 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/color.py +++ b/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/color.py @@ -5,6 +5,9 @@ @dataclass class ColorClass(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + b: int g: int r: int @@ -13,5 +16,8 @@ class ColorClass(DataClassJsonMixin): @dataclass class Color(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + color: ColorClass id: str diff --git a/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/polygon_attribute.py b/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/polygon_attribute.py index 64a1b1a..ebc20a6 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/polygon_attribute.py +++ b/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/polygon_attribute.py @@ -4,5 +4,8 @@ @dataclass class PolygonAttribute(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str name: str diff --git a/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/vertex_attribute.py b/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/vertex_attribute.py index b6b7766..64f7c2d 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/vertex_attribute.py +++ b/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/vertex_attribute.py @@ -4,5 +4,8 @@ @dataclass class VertexAttribute(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str name: str diff --git a/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/visibility.py b/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/visibility.py index 78c2b5c..56a629d 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/visibility.py +++ b/src/opengeodeweb_viewer/rpc/mesh/polygons/schemas/visibility.py @@ -4,5 +4,8 @@ @dataclass class Visibility(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str visibility: bool diff --git a/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/color.py b/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/color.py index 87f4735..01f0222 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/color.py +++ b/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/color.py @@ -5,6 +5,9 @@ @dataclass class ColorClass(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + b: int g: int r: int @@ -13,5 +16,8 @@ class ColorClass(DataClassJsonMixin): @dataclass class Color(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + color: ColorClass id: str diff --git a/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/polyhedron_attribute.py b/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/polyhedron_attribute.py index 465685e..b2cb0ba 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/polyhedron_attribute.py +++ b/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/polyhedron_attribute.py @@ -4,5 +4,8 @@ @dataclass class PolyhedronAttribute(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str name: str diff --git a/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/vertex_attribute.py b/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/vertex_attribute.py index b6b7766..64f7c2d 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/vertex_attribute.py +++ b/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/vertex_attribute.py @@ -4,5 +4,8 @@ @dataclass class VertexAttribute(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str name: str diff --git a/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/visibility.py b/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/visibility.py index 78c2b5c..56a629d 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/visibility.py +++ b/src/opengeodeweb_viewer/rpc/mesh/polyhedra/schemas/visibility.py @@ -4,5 +4,8 @@ @dataclass class Visibility(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str visibility: bool diff --git a/src/opengeodeweb_viewer/rpc/mesh/schemas/apply_textures.py b/src/opengeodeweb_viewer/rpc/mesh/schemas/apply_textures.py index 1a10c08..cb20d07 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/schemas/apply_textures.py +++ b/src/opengeodeweb_viewer/rpc/mesh/schemas/apply_textures.py @@ -5,11 +5,17 @@ @dataclass class Texture(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str texture_name: str @dataclass class ApplyTextures(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str textures: List[Texture] diff --git a/src/opengeodeweb_viewer/rpc/mesh/schemas/color.py b/src/opengeodeweb_viewer/rpc/mesh/schemas/color.py index a1e2a3f..4abb0e3 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/schemas/color.py +++ b/src/opengeodeweb_viewer/rpc/mesh/schemas/color.py @@ -4,6 +4,9 @@ @dataclass class ColorClass(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + b: int g: int r: int @@ -11,5 +14,8 @@ class ColorClass(DataClassJsonMixin): @dataclass class Color(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + color: ColorClass id: str diff --git a/src/opengeodeweb_viewer/rpc/mesh/schemas/deregister.py b/src/opengeodeweb_viewer/rpc/mesh/schemas/deregister.py index f9c0aee..8a9e662 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/schemas/deregister.py +++ b/src/opengeodeweb_viewer/rpc/mesh/schemas/deregister.py @@ -4,4 +4,7 @@ @dataclass class Deregister(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str diff --git a/src/opengeodeweb_viewer/rpc/mesh/schemas/opacity.py b/src/opengeodeweb_viewer/rpc/mesh/schemas/opacity.py index a6215df..1ec574e 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/schemas/opacity.py +++ b/src/opengeodeweb_viewer/rpc/mesh/schemas/opacity.py @@ -4,5 +4,8 @@ @dataclass class Opacity(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str opacity: float diff --git a/src/opengeodeweb_viewer/rpc/mesh/schemas/register.py b/src/opengeodeweb_viewer/rpc/mesh/schemas/register.py index e15e699..9a953cf 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/schemas/register.py +++ b/src/opengeodeweb_viewer/rpc/mesh/schemas/register.py @@ -4,4 +4,7 @@ @dataclass class Register(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str diff --git a/src/opengeodeweb_viewer/rpc/mesh/schemas/visibility.py b/src/opengeodeweb_viewer/rpc/mesh/schemas/visibility.py index 78c2b5c..56a629d 100644 --- a/src/opengeodeweb_viewer/rpc/mesh/schemas/visibility.py +++ b/src/opengeodeweb_viewer/rpc/mesh/schemas/visibility.py @@ -4,5 +4,8 @@ @dataclass class Visibility(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str visibility: bool diff --git a/src/opengeodeweb_viewer/rpc/model/blocks/schemas/color.py b/src/opengeodeweb_viewer/rpc/model/blocks/schemas/color.py index 3c52ca4..9763bc1 100644 --- a/src/opengeodeweb_viewer/rpc/model/blocks/schemas/color.py +++ b/src/opengeodeweb_viewer/rpc/model/blocks/schemas/color.py @@ -5,6 +5,9 @@ @dataclass class ColorClass(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + b: int g: int r: int @@ -13,6 +16,9 @@ class ColorClass(DataClassJsonMixin): @dataclass class Color(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + block_ids: List[int] color: ColorClass id: str diff --git a/src/opengeodeweb_viewer/rpc/model/blocks/schemas/visibility.py b/src/opengeodeweb_viewer/rpc/model/blocks/schemas/visibility.py index 0e79ba2..0ea3b66 100644 --- a/src/opengeodeweb_viewer/rpc/model/blocks/schemas/visibility.py +++ b/src/opengeodeweb_viewer/rpc/model/blocks/schemas/visibility.py @@ -5,6 +5,9 @@ @dataclass class Visibility(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + block_ids: List[int] id: str visibility: bool diff --git a/src/opengeodeweb_viewer/rpc/model/corners/schemas/color.py b/src/opengeodeweb_viewer/rpc/model/corners/schemas/color.py index 3c52ca4..9763bc1 100644 --- a/src/opengeodeweb_viewer/rpc/model/corners/schemas/color.py +++ b/src/opengeodeweb_viewer/rpc/model/corners/schemas/color.py @@ -5,6 +5,9 @@ @dataclass class ColorClass(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + b: int g: int r: int @@ -13,6 +16,9 @@ class ColorClass(DataClassJsonMixin): @dataclass class Color(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + block_ids: List[int] color: ColorClass id: str diff --git a/src/opengeodeweb_viewer/rpc/model/corners/schemas/visibility.py b/src/opengeodeweb_viewer/rpc/model/corners/schemas/visibility.py index 0e79ba2..0ea3b66 100644 --- a/src/opengeodeweb_viewer/rpc/model/corners/schemas/visibility.py +++ b/src/opengeodeweb_viewer/rpc/model/corners/schemas/visibility.py @@ -5,6 +5,9 @@ @dataclass class Visibility(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + block_ids: List[int] id: str visibility: bool diff --git a/src/opengeodeweb_viewer/rpc/model/edges/schemas/visibility.py b/src/opengeodeweb_viewer/rpc/model/edges/schemas/visibility.py index 78c2b5c..56a629d 100644 --- a/src/opengeodeweb_viewer/rpc/model/edges/schemas/visibility.py +++ b/src/opengeodeweb_viewer/rpc/model/edges/schemas/visibility.py @@ -4,5 +4,8 @@ @dataclass class Visibility(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str visibility: bool diff --git a/src/opengeodeweb_viewer/rpc/model/lines/schemas/color.py b/src/opengeodeweb_viewer/rpc/model/lines/schemas/color.py index 3c52ca4..9763bc1 100644 --- a/src/opengeodeweb_viewer/rpc/model/lines/schemas/color.py +++ b/src/opengeodeweb_viewer/rpc/model/lines/schemas/color.py @@ -5,6 +5,9 @@ @dataclass class ColorClass(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + b: int g: int r: int @@ -13,6 +16,9 @@ class ColorClass(DataClassJsonMixin): @dataclass class Color(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + block_ids: List[int] color: ColorClass id: str diff --git a/src/opengeodeweb_viewer/rpc/model/lines/schemas/visibility.py b/src/opengeodeweb_viewer/rpc/model/lines/schemas/visibility.py index 0e79ba2..0ea3b66 100644 --- a/src/opengeodeweb_viewer/rpc/model/lines/schemas/visibility.py +++ b/src/opengeodeweb_viewer/rpc/model/lines/schemas/visibility.py @@ -5,6 +5,9 @@ @dataclass class Visibility(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + block_ids: List[int] id: str visibility: bool diff --git a/src/opengeodeweb_viewer/rpc/model/points/schemas/size.py b/src/opengeodeweb_viewer/rpc/model/points/schemas/size.py index 3ed13eb..eb18279 100644 --- a/src/opengeodeweb_viewer/rpc/model/points/schemas/size.py +++ b/src/opengeodeweb_viewer/rpc/model/points/schemas/size.py @@ -4,5 +4,8 @@ @dataclass class Size(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str size: float diff --git a/src/opengeodeweb_viewer/rpc/model/points/schemas/visibility.py b/src/opengeodeweb_viewer/rpc/model/points/schemas/visibility.py index 78c2b5c..56a629d 100644 --- a/src/opengeodeweb_viewer/rpc/model/points/schemas/visibility.py +++ b/src/opengeodeweb_viewer/rpc/model/points/schemas/visibility.py @@ -4,5 +4,8 @@ @dataclass class Visibility(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str visibility: bool diff --git a/src/opengeodeweb_viewer/rpc/model/schemas/deregister.py b/src/opengeodeweb_viewer/rpc/model/schemas/deregister.py index f9c0aee..8a9e662 100644 --- a/src/opengeodeweb_viewer/rpc/model/schemas/deregister.py +++ b/src/opengeodeweb_viewer/rpc/model/schemas/deregister.py @@ -4,4 +4,7 @@ @dataclass class Deregister(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str diff --git a/src/opengeodeweb_viewer/rpc/model/schemas/register.py b/src/opengeodeweb_viewer/rpc/model/schemas/register.py index e15e699..9a953cf 100644 --- a/src/opengeodeweb_viewer/rpc/model/schemas/register.py +++ b/src/opengeodeweb_viewer/rpc/model/schemas/register.py @@ -4,4 +4,7 @@ @dataclass class Register(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str diff --git a/src/opengeodeweb_viewer/rpc/model/schemas/visibility.py b/src/opengeodeweb_viewer/rpc/model/schemas/visibility.py index 78c2b5c..56a629d 100644 --- a/src/opengeodeweb_viewer/rpc/model/schemas/visibility.py +++ b/src/opengeodeweb_viewer/rpc/model/schemas/visibility.py @@ -4,5 +4,8 @@ @dataclass class Visibility(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str visibility: bool diff --git a/src/opengeodeweb_viewer/rpc/model/surfaces/schemas/apply_textures.py b/src/opengeodeweb_viewer/rpc/model/surfaces/schemas/apply_textures.py index b96e9ee..fb2fc21 100644 --- a/src/opengeodeweb_viewer/rpc/model/surfaces/schemas/apply_textures.py +++ b/src/opengeodeweb_viewer/rpc/model/surfaces/schemas/apply_textures.py @@ -5,11 +5,17 @@ @dataclass class Texture(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + texture_file_name: str texture_name: str @dataclass class ApplyTextures(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str textures: List[Texture] diff --git a/src/opengeodeweb_viewer/rpc/model/surfaces/schemas/color.py b/src/opengeodeweb_viewer/rpc/model/surfaces/schemas/color.py index 3c52ca4..9763bc1 100644 --- a/src/opengeodeweb_viewer/rpc/model/surfaces/schemas/color.py +++ b/src/opengeodeweb_viewer/rpc/model/surfaces/schemas/color.py @@ -5,6 +5,9 @@ @dataclass class ColorClass(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + b: int g: int r: int @@ -13,6 +16,9 @@ class ColorClass(DataClassJsonMixin): @dataclass class Color(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + block_ids: List[int] color: ColorClass id: str diff --git a/src/opengeodeweb_viewer/rpc/model/surfaces/schemas/visibility.py b/src/opengeodeweb_viewer/rpc/model/surfaces/schemas/visibility.py index 0e79ba2..0ea3b66 100644 --- a/src/opengeodeweb_viewer/rpc/model/surfaces/schemas/visibility.py +++ b/src/opengeodeweb_viewer/rpc/model/surfaces/schemas/visibility.py @@ -5,6 +5,9 @@ @dataclass class Visibility(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + block_ids: List[int] id: str visibility: bool diff --git a/src/opengeodeweb_viewer/rpc/schemas/import_project.py b/src/opengeodeweb_viewer/rpc/schemas/import_project.py index 2fd045e..5bfde5a 100644 --- a/src/opengeodeweb_viewer/rpc/schemas/import_project.py +++ b/src/opengeodeweb_viewer/rpc/schemas/import_project.py @@ -4,4 +4,7 @@ @dataclass class ImportProject(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + pass diff --git a/src/opengeodeweb_viewer/rpc/schemas/kill.py b/src/opengeodeweb_viewer/rpc/schemas/kill.py index f2c4b04..a37cb92 100644 --- a/src/opengeodeweb_viewer/rpc/schemas/kill.py +++ b/src/opengeodeweb_viewer/rpc/schemas/kill.py @@ -4,4 +4,7 @@ @dataclass class Kill(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + pass diff --git a/src/opengeodeweb_viewer/rpc/viewer/schemas/axes.py b/src/opengeodeweb_viewer/rpc/viewer/schemas/axes.py index b1354f5..5fdf6ef 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/schemas/axes.py +++ b/src/opengeodeweb_viewer/rpc/viewer/schemas/axes.py @@ -4,4 +4,7 @@ @dataclass class Axes(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + visibility: bool diff --git a/src/opengeodeweb_viewer/rpc/viewer/schemas/get_point_position.py b/src/opengeodeweb_viewer/rpc/viewer/schemas/get_point_position.py index 90c3859..47c2061 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/schemas/get_point_position.py +++ b/src/opengeodeweb_viewer/rpc/viewer/schemas/get_point_position.py @@ -4,5 +4,8 @@ @dataclass class GetPointPosition(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + x: int y: int diff --git a/src/opengeodeweb_viewer/rpc/viewer/schemas/grid_scale.py b/src/opengeodeweb_viewer/rpc/viewer/schemas/grid_scale.py index e06adc0..5747671 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/schemas/grid_scale.py +++ b/src/opengeodeweb_viewer/rpc/viewer/schemas/grid_scale.py @@ -4,4 +4,7 @@ @dataclass class GridScale(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + visibility: bool diff --git a/src/opengeodeweb_viewer/rpc/viewer/schemas/picked_ids.py b/src/opengeodeweb_viewer/rpc/viewer/schemas/picked_ids.py index cff05d3..b8ecdd9 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/schemas/picked_ids.py +++ b/src/opengeodeweb_viewer/rpc/viewer/schemas/picked_ids.py @@ -5,6 +5,9 @@ @dataclass class PickedIDS(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + ids: List[str] x: float y: float diff --git a/src/opengeodeweb_viewer/rpc/viewer/schemas/render.py b/src/opengeodeweb_viewer/rpc/viewer/schemas/render.py index 1cbad7d..aeae232 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/schemas/render.py +++ b/src/opengeodeweb_viewer/rpc/viewer/schemas/render.py @@ -4,4 +4,7 @@ @dataclass class Render(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + pass diff --git a/src/opengeodeweb_viewer/rpc/viewer/schemas/reset_camera.py b/src/opengeodeweb_viewer/rpc/viewer/schemas/reset_camera.py index f8f9674..f07bc00 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/schemas/reset_camera.py +++ b/src/opengeodeweb_viewer/rpc/viewer/schemas/reset_camera.py @@ -4,4 +4,7 @@ @dataclass class ResetCamera(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + pass diff --git a/src/opengeodeweb_viewer/rpc/viewer/schemas/reset_visualization.py b/src/opengeodeweb_viewer/rpc/viewer/schemas/reset_visualization.py index ca99bd1..7bd76a2 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/schemas/reset_visualization.py +++ b/src/opengeodeweb_viewer/rpc/viewer/schemas/reset_visualization.py @@ -4,4 +4,7 @@ @dataclass class ResetVisualization(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + pass diff --git a/src/opengeodeweb_viewer/rpc/viewer/schemas/set_background_color.py b/src/opengeodeweb_viewer/rpc/viewer/schemas/set_background_color.py index 0302d3b..9398a5b 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/schemas/set_background_color.py +++ b/src/opengeodeweb_viewer/rpc/viewer/schemas/set_background_color.py @@ -4,6 +4,9 @@ @dataclass class Color(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + b: int g: int r: int @@ -11,4 +14,7 @@ class Color(DataClassJsonMixin): @dataclass class SetBackgroundColor(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + color: Color diff --git a/src/opengeodeweb_viewer/rpc/viewer/schemas/set_z_scaling.py b/src/opengeodeweb_viewer/rpc/viewer/schemas/set_z_scaling.py index 0a0558e..bc521a6 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/schemas/set_z_scaling.py +++ b/src/opengeodeweb_viewer/rpc/viewer/schemas/set_z_scaling.py @@ -4,4 +4,7 @@ @dataclass class SetZScaling(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + z_scale: float diff --git a/src/opengeodeweb_viewer/rpc/viewer/schemas/take_screenshot.py b/src/opengeodeweb_viewer/rpc/viewer/schemas/take_screenshot.py index c6b7df0..c5d2764 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/schemas/take_screenshot.py +++ b/src/opengeodeweb_viewer/rpc/viewer/schemas/take_screenshot.py @@ -10,6 +10,9 @@ class OutputExtension(Enum): @dataclass class TakeScreenshot(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + filename: str include_background: bool output_extension: OutputExtension diff --git a/src/opengeodeweb_viewer/rpc/viewer/schemas/update_camera.py b/src/opengeodeweb_viewer/rpc/viewer/schemas/update_camera.py index 31c470f..58a07aa 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/schemas/update_camera.py +++ b/src/opengeodeweb_viewer/rpc/viewer/schemas/update_camera.py @@ -5,6 +5,9 @@ @dataclass class CameraOptions(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + clipping_range: List[float] focal_point: List[float] position: List[float] @@ -14,4 +17,7 @@ class CameraOptions(DataClassJsonMixin): @dataclass class UpdateCamera(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + camera_options: CameraOptions diff --git a/src/opengeodeweb_viewer/rpc/viewer/schemas/update_data.py b/src/opengeodeweb_viewer/rpc/viewer/schemas/update_data.py index 993ac81..c44447a 100644 --- a/src/opengeodeweb_viewer/rpc/viewer/schemas/update_data.py +++ b/src/opengeodeweb_viewer/rpc/viewer/schemas/update_data.py @@ -4,4 +4,7 @@ @dataclass class UpdateData(DataClassJsonMixin): + def __post_init__(self) -> None: + print(self, flush=True) + id: str