Skip to content

Commit

Permalink
Harmonize messages with the YAML grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 2, 2024
1 parent dcd6e9e commit 153ed6d
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions python/podio_schema_evolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class AddedVectorMember(SchemaChange):
def __init__(self, member, datatype):
self.member = member
self.klassname = datatype
super().__init__(f"'{self.klassname}' has added a vector member '{self.member}'")
super().__init__(f"'{self.klassname}' has added a VectorMember '{self.member}'")


class DroppedVectorMember(SchemaChange):
Expand All @@ -139,7 +139,7 @@ class DroppedVectorMember(SchemaChange):
def __init__(self, member, datatype):
self.member = member
self.klassname = datatype
super().__init__(f"'{self.klassname}' has a dropped member '{self.member.name}")
super().__init__(f"'{self.klassname}' has a dropped VectorMember '{self.member.name}")


class AddedSingleRelation(SchemaChange):
Expand All @@ -148,9 +148,7 @@ class AddedSingleRelation(SchemaChange):
def __init__(self, member, datatype):
self.member = member
self.klassname = datatype
super().__init__(
f"'{self.klassname}' has added a one-to-one relation '{self.member.name}'"
)
super().__init__(f"'{self.klassname}' has added a OneToOneRelation '{self.member.name}'")


class DroppedSingleRelation(SchemaChange):
Expand All @@ -159,9 +157,7 @@ class DroppedSingleRelation(SchemaChange):
def __init__(self, member, datatype):
self.member = member
self.klassname = datatype
super().__init__(
f"'{self.klassname}' has dropped a one-to-one relation '{self.member.name}'"
)
super().__init__(f"'{self.klassname}' has dropped a OneToOneRelation '{self.member.name}'")


class AddedMultiRelation(SchemaChange):
Expand All @@ -170,9 +166,7 @@ class AddedMultiRelation(SchemaChange):
def __init__(self, member, datatype):
self.member = member
self.klassname = datatype
super().__init__(
f"'{self.klassname}' has added a one-to-many relation '{self.member.name}'"
)
super().__init__(f"'{self.klassname}' has added a OneToManyRelation '{self.member.name}'")


class DroppedMultiRelation(SchemaChange):
Expand All @@ -182,7 +176,7 @@ def __init__(self, member, datatype):
self.member = member
self.klassname = datatype
super().__init__(
f"'{self.klassname}' has dropped a one-to-many relation '{self.member.name}'"
f"'{self.klassname}' has dropped a OneToManyRelation '{self.member.name}'"
)


Expand Down

0 comments on commit 153ed6d

Please sign in to comment.