Skip to content
Snippets Groups Projects
Commit 5f05f6e7 authored by Swen Vermeul's avatar Swen Vermeul
Browse files

get_propertyAssignments may now return vocabulary

parent 9dcb9aff
No related branches found
No related tags found
No related merge requests found
......@@ -38,8 +38,10 @@ class EntityType():
def __ne__(self, other):
return str(self) != str(other)
def get_propertyAssignments(self):
def get_propertyAssignments(self, including_vocabulary=False):
attrs = ['code', 'label', 'description', 'dataType', 'mandatory', 'showInEditView', 'ordinal']
if including_vocabulary:
attrs.append('vocabulary')
pas = [ {**pa['propertyType'], **pa} for pa in self.data['propertyAssignments'] ]
return DataFrame(pas, columns=attrs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment