Package advene :: Package model :: Package cam :: Module import_
[hide private]
[frames] | no frames]

Source Code for Module advene.model.cam.import_

 1  from advene.model.cam.group import CamGroupMixin 
 2  from advene.model.cam.element import CamElementMixin 
 3  from advene.model.core.import_ import Import as CoreImport 
 4  from advene.model.exceptions import UnreachableImportError 
 5   
6 -class Import(CoreImport, CamElementMixin, CamGroupMixin):
7 8 # group interface 9
10 - def iter_user_tags(self):
11 if not self._imported: 12 raise UnreachableImportError(self._id) 13 return self._imported.own.iter_user_tags()
14
15 - def iter_annotation_types(self):
16 if not self._imported: 17 raise UnreachableImportError(self._id) 18 return self._imported.own.iter_annotation_types()
19
20 - def iter_relation_types(self):
21 if not self._imported: 22 raise UnreachableImportError(self._id) 23 return self._imported.own.iter_relation_types()
24
25 - def iter_user_lists(self):
26 if not self._imported: 27 raise UnreachableImportError(self._id) 28 return self._imported.own.iter_user_lists()
29
30 - def iter_schemas(self):
31 if not self._imported: 32 raise UnreachableImportError(self._id) 33 return self._imported.own.iter_schemas()
34
35 - def count_user_tags(self):
36 if not self._imported: 37 raise UnreachableImportError(self._id) 38 return self._imported.own.count_user_tags()
39
40 - def count_annotation_types(self):
41 if not self._imported: 42 raise UnreachableImportError(self._id) 43 return self._imported.own.count_annotation_types()
44
45 - def count_relation_types(self):
46 if not self._imported: 47 raise UnreachableImportError(self._id) 48 return self._imported.own.count_relation_types()
49
50 - def count_user_lists(self):
51 if not self._imported: 52 raise UnreachableImportError(self._id) 53 return self._imported.own.count_user_lists()
54
55 - def count_schemas(self):
56 if not self._imported: 57 raise UnreachableImportError(self._id) 58 return self._imported.own.count_schemas()
59 60 # TODO when renaming is implemented: prevent "cam" from being renamed 61