Trees | Indices | Help |
|
---|
|
1 from advene.model.cam.consts import CAMSYS_TYPE 2 from advene.model.core.element import LIST, TAG, ElementCollection 3 from advene.model.core.group import GroupMixin 4 5 from itertools import chain73 return GroupUserTags(group.owner) 74 75 @property9 return chain(*( 10 self.iter_schemas(), 11 self.iter_annotation_types(), 12 self.iter_relation_types(), 13 self.iter_medias(), 14 self.iter_annotations(), 15 self.iter_relations(), 16 self.iter_user_lists(), 17 self.iter_user_tags(), 18 self.iter_views(), 19 self.iter_queries(), 20 self.iter_resources(), 21 self.iter_imports(), 22 ))23 28 33 38 43 48 51 54 57 60 63 64 @property77 class GroupAnnotationTypes(ElementCollection): 78 __iter__ = group.iter_annotation_types 79 __len__ = group.count_annotation_types 80 def __contains__(self, e): 81 return getattr(e, "ADVENE_TYPE", None) == TAG \ 82 and e.get_meta(CAMSYS_TYPE, None) \ 83 == "annotation-type" \ 84 and e in group85 return GroupAnnotationTypes(group.owner) 86 87 @property89 class GroupRelationTypes(ElementCollection): 90 __iter__ = group.iter_relation_types 91 __len__ = group.count_relation_types 92 def __contains__(self, e): 93 return getattr(e, "ADVENE_TYPE", None) == TAG \ 94 and e.get_meta(CAMSYS_TYPE, None) \ 95 == "relation-type" \ 96 and e in group97 return GroupRelationTypes(group.owner) 98 99 @property101 class GroupUserLists(ElementCollection): 102 __iter__ = group.iter_user_lists 103 __len__ = group.count_user_lists 104 def __contains__(self, e): 105 return getattr(e, "ADVENE_TYPE", None) == LIST \ 106 and e.get_meta(CAMSYS_TYPE, None) is None \ 107 and e in group108 return GroupUserLists(group.owner) 109 110 @property112 class GroupSchemas(ElementCollection): 113 __iter__ = group.iter_schemas 114 __len__ = group.count_schemas 115 def __contains__(self, e): 116 return getattr(e, "ADVENE_TYPE", None) == LIST \ 117 and e.get_meta(CAMSYS_TYPE, None) == "schema" \ 118 and e in group119 return GroupSchemas(group.owner) 120
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Jul 8 16:00:06 2009 | http://epydoc.sourceforge.net |