fix: wrap desc in DictObject for attribute access in subtable2toolbar
This commit is contained in:
parent
057ca605c1
commit
3a865e89a2
@ -97,7 +97,7 @@ def subtable2toolbar(desc):
|
|||||||
def build_crud_ui(crud_data: dict, dbdesc: dict):
|
def build_crud_ui(crud_data: dict, dbdesc: dict):
|
||||||
uidir = crud_data.output_dir
|
uidir = crud_data.output_dir
|
||||||
tables = [ k for k in dbdesc.keys() ]
|
tables = [ k for k in dbdesc.keys() ]
|
||||||
desc = dbdesc[crud_data.tblname].copy()
|
desc = DictObject(**dbdesc[crud_data.tblname].copy())
|
||||||
desc.update(crud_data.params.copy())
|
desc.update(crud_data.params.copy())
|
||||||
subtable2toolbar(desc)
|
subtable2toolbar(desc)
|
||||||
binds = desc.binds or []
|
binds = desc.binds or []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user