Skip to content
Snippets Groups Projects

Create missing classes for Transcription, Corpus

Merged Yoann Schneider requested to merge new-models-for-transcription-corpus into master
1 file
+ 18
0
Compare changes
  • Side-by-side
  • Inline
+ 18
0
@@ -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)
Loading