1 from advene.model.cam.consts import CAMSYS_TYPE
2 from advene.model.cam.element import CamElementMixin
3 from advene.model.cam.group import CamGroupMixin
4 import advene.model.cam.util.bookkeeping as bk
5 from advene.model.core.list import List as CoreList
6
7 -class List(CoreList, CamGroupMixin, CamElementMixin) :
8
9 @classmethod
15
19
23
25 """
26 Transtypes this List to Schema if its systype is 'schema'.
27
28 If systype is omitted, it is retrieved from the metadata.
29 """
30 if systype is None:
31 systype = self.get_meta(CAMSYS_TYPE, None)
32 if systype == "schema":
33 newtype = Schema
34 else:
35 newtype = List
36 if self.__class__ is not newtype:
37 self.__class__ = newtype
38
39 List.make_metadata_property(CAMSYS_TYPE, "system_type", default=None)
42 """
43 The class of annotation types.
44 """
45
46
47 pass
48