02-06-2020, 05:22 PM
Ultimately, all of this uses the schema. Try this script:
project_code = "testovy"
schema = Schema.get(project_code=project_code)
xml = schema.get_xml()
print(xml.to_string())
print()
print(schema.get_relationship_attrs("testovy/asset", "testovy/asset_in_asset"))
The first print will print out the schema xml that it is actually using. The second is the one that pulls all the attributes.
project_code = "testovy"
schema = Schema.get(project_code=project_code)
xml = schema.get_xml()
print(xml.to_string())
print()
print(schema.get_relationship_attrs("testovy/asset", "testovy/asset_in_asset"))
The first print will print out the schema xml that it is actually using. The second is the one that pulls all the attributes.