Exemplo n.º 1
0
 def getAnnotations(self):
     """Return a collection of this package's annotations"""
     if self.__annotations is None:
         e = self._getChild((adveneNS, "annotations"))
         self.__annotations = StandardXmlBundle(self, e,
                                                annotation.Annotation)
     return self.__annotations
Exemplo n.º 2
0
 def getRelations(self):
     """Return a collection of this package's relations"""
     if self.__relations is None:
         e = self._getChild((adveneNS, "annotations"))
         # yes, "annotations"!
         #relations are under the same element as annotations
         # FIXME: is this always the case ?
         self.__relations = StandardXmlBundle(self, e, annotation.Relation)
     return self.__relations