Semprini / pyMDG

UML Model Driven Generation of schema, code, data and documentation.
Other
21 stars 10 forks source link

attribute id fields set incorrectly in sparx_db parse #46

Closed Semprini closed 2 years ago

Semprini commented 2 years ago
if txref is not None:
    attr.is_id = bool(re.findall('@NAME=isID@ENDNAME;@TYPE=Boolean@ENDTYPE;@VALU=1@ENDVALU;', txref.description))
    # print(f"{attr.name} | {attr.is_id} | {txref.description}")
    if attr.is_id:
        attr.parent.id_attribute = attr