Skip to content
Snippets Groups Projects
Verified Commit bd7fd549 authored by Yoann Schneider's avatar Yoann Schneider :tennis:
Browse files

create new classes

parent 778e0caa
No related branches found
No related tags found
1 merge request!198Helper for ListTranscriptionEntities
Pipeline #79442 passed
......@@ -220,3 +220,21 @@ class Element(MagicDict):
else:
type_name = str(self.type)
return "{} {} ({})".format(type_name, self.name, self.id)
class Transcription(MagicDict):
"""
Describes an Arkindex element's transcription.
"""
def __str__(self):
return "Transcription ({})".format(self.id)
class Corpus(MagicDict):
"""
Describes an Arkindex corpus.
"""
def __str__(self):
return "Corpus {} ({})".format(self.name, self.id)
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