types: add 'local' to PropertySource

main
svalouch 4 years ago
parent 1c977670e2
commit 6b7e68d697

@ -103,6 +103,8 @@ class PropertySource(str, Enum):
''' '''
#: Property is at default #: Property is at default
DEFAULT = 'default' DEFAULT = 'default'
#: Property was defined on the dataset itself
LOCAL = 'local'
#: Property was inerited #: Property was inerited
INHERITED = 'inherited' INHERITED = 'inherited'
#: Property is temporary #: Property is temporary
@ -126,6 +128,8 @@ class PropertySource(str, Enum):
val = value.lower() val = value.lower()
if val == 'default': if val == 'default':
return PropertySource.DEFAULT return PropertySource.DEFAULT
elif val == 'local':
return PropertySource.LOCAL
elif val == 'inherited': elif val == 'inherited':
return PropertySource.INHERITED return PropertySource.INHERITED
elif val == 'temporary': elif val == 'temporary':

Loading…
Cancel
Save