diff --git a/src/gen/lib/attribute.py b/src/gen/lib/attribute.py index 31371725a..7712ebe5e 100644 --- a/src/gen/lib/attribute.py +++ b/src/gen/lib/attribute.py @@ -65,7 +65,7 @@ class Attribute(SecondaryObject, PrivacyBase, SourceBase, NoteBase): NoteBase.__init__(self, source) if source: - self.type = source.type + self.type = AttributeType(source.type) self.value = source.value else: self.type = AttributeType() diff --git a/src/gen/lib/childref.py b/src/gen/lib/childref.py index 4b563a7a9..0e381e0d7 100644 --- a/src/gen/lib/childref.py +++ b/src/gen/lib/childref.py @@ -55,8 +55,8 @@ class ChildRef(SecondaryObject, PrivacyBase, SourceBase, NoteBase, RefBase): NoteBase.__init__(self, source) RefBase.__init__(self, source) if source: - self.frel = source.frel - self.mrel = source.mrel + self.frel = ChildRefType(source.frel) + self.mrel = ChildRefType(source.mrel) else: self.frel = ChildRefType() self.mrel = ChildRefType() diff --git a/src/gen/lib/event.py b/src/gen/lib/event.py index d958bac1f..408451379 100644 --- a/src/gen/lib/event.py +++ b/src/gen/lib/event.py @@ -76,7 +76,7 @@ class Event(SourceBase, NoteBase, MediaBase, AttributeBase, if source: self.__description = source.__description - self.__type = source.__type + self.__type = EventType(source.__type) else: self.__description = "" self.__type = EventType() diff --git a/src/gen/lib/eventref.py b/src/gen/lib/eventref.py index b45b69df3..6239448a0 100644 --- a/src/gen/lib/eventref.py +++ b/src/gen/lib/eventref.py @@ -58,7 +58,7 @@ class EventRef(SecondaryObject, PrivacyBase, NoteBase, AttributeBase, RefBase): AttributeBase.__init__(self, source) RefBase.__init__(self, source) if source: - self.__role = source.__role + self.__role = EventRoleType(source.__role) else: self.__role = EventRoleType() diff --git a/src/gen/lib/name.py b/src/gen/lib/name.py index 5f52b0d42..47ab2bfda 100644 --- a/src/gen/lib/name.py +++ b/src/gen/lib/name.py @@ -81,7 +81,7 @@ class Name(SecondaryObject, PrivacyBase, SourceBase, NoteBase, DateBase): self.surname = source.surname self.suffix = source.suffix self.title = source.title - self.type = source.type + self.type = NameType(source.type) self.prefix = source.prefix self.patronymic = source.patronymic self.group_as = source.group_as diff --git a/src/gen/lib/reporef.py b/src/gen/lib/reporef.py index b3a147261..6df56f638 100644 --- a/src/gen/lib/reporef.py +++ b/src/gen/lib/reporef.py @@ -51,7 +51,7 @@ class RepoRef(SecondaryObject, PrivacyBase, NoteBase, RefBase): RefBase.__init__(self, source) if source: self.call_number = source.call_number - self.media_type = source.media_type + self.media_type = SourceMediaType(source.media_type) else: self.call_number = "" self.media_type = SourceMediaType() diff --git a/src/gen/lib/url.py b/src/gen/lib/url.py index bde2a61d7..cb68110fd 100644 --- a/src/gen/lib/url.py +++ b/src/gen/lib/url.py @@ -59,7 +59,7 @@ class Url(SecondaryObject, PrivacyBase): if source: self.path = source.path self.desc = source.desc - self.type = source.type + self.type = UrlType(source.type) else: self.path = "" self.desc = ""