Source code for timApp.readmark.readmarkcollection
from dataclasses import dataclass, field
from timApp.readmark.readparagraph import ReadParagraph
[docs]@dataclass
class ReadMarkCollection:
marks: list[ReadParagraph] = field(default_factory=list)
@property
def class_str(self):
s = "readline"
for c in (
r.type.class_str + ("-modified" if r.modified else "") for r in self.marks
):
s += " " + c
return s