Skip to content
Snippets Groups Projects
Commit a19dad0b authored by Yoann Schneider's avatar Yoann Schneider :tennis: Committed by Bastien Abadie
Browse files

create new classes

parent 007a33ec
No related branches found
No related tags found
1 merge request!199Create missing classes for Transcription, Corpus
Pipeline #79473 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