Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion geos-trame/src/geos/trame/app/deck/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def update( self, path: str, key: str, value: Any ) -> None:
new_path = [ int( x ) if x.isdigit() else x for x in path.split( "/" ) ]
new_path.append( key )
assert self.input_file is not None and self.input_file.pb_dict is not None
funcy.set_in( self.input_file.pb_dict, new_path, value )
self.input_file.pb_dict = funcy.set_in( self.input_file.pb_dict, new_path, value )

def _search( self, path: str ) -> list | None:
new_path = path.split( "/" )
Expand Down Expand Up @@ -286,6 +286,9 @@ def _set_base_model_properties( model: dict, proxy_path: str, properties: dict )

if proxy_name.isnumeric() and int( proxy_name ) < len( model_copy ):
models.append( ( proxy_name, model_copy ) )
if is_list:
proxy_name = int(proxy_name)
#won't work if is_list # TO DO IMMEDIATELY -- review proxy strat
model_copy = model_copy[ proxy_name ]
continue

Expand Down
6 changes: 4 additions & 2 deletions geos-trame/src/geos/trame/app/ui/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from trame.widgets import vuetify3 as vuetify, html
from trame_simput import get_simput_manager

from xsdata.utils import text

from geos.trame.app.data_types.field_status import FieldStatus
from geos.trame.app.data_types.renderable import Renderable
from geos.trame.app.data_types.tree_node import TreeNode
Expand Down Expand Up @@ -61,9 +63,9 @@ def _on_change( topic: str, ids: list | None = None ) -> None:
if ids is not None and topic == "changed":
for obj_id in ids:
proxy = self.simput_manager.proxymanager.get( obj_id )
self.tree.decode( obj_id )
#self.tree.decode( obj_id ) # if const function and return not used why ?? to decode context ??
for prop in proxy.edited_property_names:
self.tree.update( obj_id, prop, proxy.get_property( prop ) )
self.tree.update( obj_id, text.camel_case(prop), proxy.get_property( prop ) )

self.simput_manager.proxymanager.on( _on_change )

Expand Down
Loading