Skip to content

Commit cdee1f8

Browse files
EmanIsmailemanismail
and
emanismail
authored
MAINT: remove hard coded event type class name. (#46)
* MAINT: remove hard coded event type name. Co-authored-by: emanismail <[email protected]>
1 parent 4fc0560 commit cdee1f8

24 files changed

+48
-48
lines changed

eiffellib/events/eiffel_activity_canceled_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelActivityCanceledEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelActivityCanceledEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelActivityCanceledEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelActivityCanceledLink()
4242
self.data = EiffelActivityCanceledData()

eiffellib/events/eiffel_activity_finished_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelActivityFinishedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelActivityFinishedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelActivityFinishedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelActivityFinishedLink()
4242
self.data = EiffelActivityFinishedData()

eiffellib/events/eiffel_activity_started_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelActivityStartedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelActivityStartedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelActivityStartedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelActivityStartedLink()
4242
self.data = EiffelActivityStartedData()

eiffellib/events/eiffel_activity_triggered_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelActivityTriggeredEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelActivityTriggeredEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelActivityTriggeredEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelActivityTriggeredLink()
4242
self.data = EiffelActivityTriggeredData()

eiffellib/events/eiffel_announcement_published_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelAnnouncementPublishedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelAnnouncementPublishedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelAnnouncementPublishedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelAnnouncementPublishedLink()
4242
self.data = EiffelAnnouncementPublishedData()

eiffellib/events/eiffel_artifact_created_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelArtifactCreatedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelArtifactCreatedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelArtifactCreatedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelArtifactCreatedLink()
4242
self.data = EiffelArtifactCreatedData()

eiffellib/events/eiffel_artifact_published_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelArtifactPublishedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelArtifactPublishedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelArtifactPublishedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelArtifactPublishedLink()
4242
self.data = EiffelArtifactPublishedData()

eiffellib/events/eiffel_artifact_reused_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelArtifactReusedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelArtifactReusedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelArtifactReusedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelArtifactReusedLink()
4242
self.data = EiffelArtifactReusedData()

eiffellib/events/eiffel_base_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -174,7 +174,7 @@ class EiffelBaseEvent(object):
174174
tag = "_"
175175
domain_id = "_"
176176
version = "0.0.1"
177-
meta = EiffelBaseMeta("EiffelBaseEvent", version)
177+
meta = EiffelBaseMeta(__qualname__, version)
178178
links = EiffelBaseLink()
179179

180180
def __init__(self, version=None, family="_", tag="_", domain_id="_"):

eiffellib/events/eiffel_composition_defined_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelCompositionDefinedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelCompositionDefinedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelCompositionDefinedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelCompositionDefinedLink()
4242
self.data = EiffelCompositionDefinedData()

eiffellib/events/eiffel_confidence_level_modified_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelConfidenceLevelModifiedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelConfidenceLevelModifiedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelConfidenceLevelModifiedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelConfidenceLevelModifiedLink()
4242
self.data = EiffelConfidenceLevelModifiedData()

eiffellib/events/eiffel_environment_defined_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelEnvironmentDefinedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelEnvironmentDefinedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelEnvironmentDefinedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelEnvironmentDefinedLink()
4242
self.data = EiffelEnvironmentDefinedData()

eiffellib/events/eiffel_flow_context_defined_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelFlowContextDefinedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelFlowContextDefinedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelFlowContextDefinedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelFlowContextDefinedLink()
4242
self.data = EiffelFlowContextDefinedData()

eiffellib/events/eiffel_issue_defined_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelIssueDefinedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelIssueDefinedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelIssueDefinedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelIssueDefinedLink()
4242
self.data = EiffelIssueDefinedData()

eiffellib/events/eiffel_issue_verified_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelIssueVerifiedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelIssueVerifiedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelIssueVerifiedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelIssueVerifiedLink()
4242
self.data = EiffelIssueVerifiedData()

eiffellib/events/eiffel_source_change_created_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelSourceChangeCreatedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelSourceChangeCreatedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelSourceChangeCreatedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelSourceChangeCreatedLink()
4242
self.data = EiffelSourceChangeCreatedData()

eiffellib/events/eiffel_source_change_submitted_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelSourceChangeSubmittedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelSourceChangeSubmittedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelSourceChangeSubmittedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelSourceChangeSubmittedLink()
4242
self.data = EiffelSourceChangeSubmittedData()

eiffellib/events/eiffel_test_case_canceled_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelTestCaseCanceledEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelTestCaseCanceledEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelTestCaseCanceledEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelTestCaseCanceledLink()
4242
self.data = EiffelTestCaseCanceledData()

eiffellib/events/eiffel_test_case_finished_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelTestCaseFinishedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelTestCaseFinishedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelTestCaseFinishedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelTestCaseFinishedLink()
4242
self.data = EiffelTestCaseFinishedData()

eiffellib/events/eiffel_test_case_started_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelTestCaseStartedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelTestCaseStartedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelTestCaseStartedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelTestCaseStartedLink()
4242
self.data = EiffelTestCaseStartedData()

eiffellib/events/eiffel_test_case_triggered_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelTestCaseTriggeredEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelTestCaseTriggeredEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelTestCaseTriggeredEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelTestCaseTriggeredLink()
4242
self.data = EiffelTestCaseTriggeredData()

eiffellib/events/eiffel_test_execution_recipe_collection_created_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelTestExecutionRecipeCollectionCreatedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelTestExecutionRecipeCollectionCreatedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelTestExecutionRecipeCollectionCreatedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelTestExecutionRecipeCollectionCreatedLink()
4242
self.data = EiffelTestExecutionRecipeCollectionCreatedData()

eiffellib/events/eiffel_test_suite_finished_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,6 +37,6 @@ class EiffelTestSuiteFinishedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelTestSuiteFinishedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelTestSuiteFinishedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelTestSuiteFinishedLink()
4242
self.data = EiffelTestSuiteFinishedData()

eiffellib/events/eiffel_test_suite_started_event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2021 Axis Communications AB.
1+
# Copyright 2019-2022 Axis Communications AB and others.
22
#
33
# For a full list of individual contributors, please see the commit history.
44
#
@@ -37,5 +37,5 @@ class EiffelTestSuiteStartedEvent(EiffelBaseEvent):
3737
def __init__(self, *args, **kwargs):
3838
"""Initialize data, meta and links."""
3939
super(EiffelTestSuiteStartedEvent, self).__init__(*args, **kwargs)
40-
self.meta = EiffelBaseMeta("EiffelTestSuiteStartedEvent", self.version)
40+
self.meta = EiffelBaseMeta(self.__class__.__name__, self.version)
4141
self.links = EiffelTestSuiteStartedLink()

0 commit comments

Comments
 (0)