Exemplo n.º 1
0
    def __init__(self,
                 id=None,
                 type=None,
                 alignment=None,
                 content=None,
                 segmentation=None,
                 attributes=None,
                 metadata=None,
                 items=None,
                 igt=None,
                 namespace=None,
                 nsmap=None):
        XigtContainerMixin.__init__(self, contained_type=Item)
        XigtAttributeMixin.__init__(self,
                                    id=id,
                                    type=type,
                                    attributes=attributes,
                                    namespace=namespace,
                                    nsmap=nsmap)
        XigtReferenceAttributeMixin.__init__(self,
                                             alignment=alignment,
                                             content=content,
                                             segmentation=segmentation)
        XigtMetadataMixin.__init__(self, metadata)

        self._parent = igt
        self.extend(items or [])
Exemplo n.º 2
0
Arquivo: model.py Projeto: xigt/xigt
    def __init__(self, id=None, type=None,
                 alignment=None, content=None, segmentation=None,
                 attributes=None, text=None, tier=None,
                 namespace=None, nsmap=None):
        XigtAttributeMixin.__init__(
            self, id=id, type=type, attributes=attributes,
            namespace=namespace, nsmap=nsmap
        )
        XigtReferenceAttributeMixin.__init__(
            self, alignment=alignment, content=content,
            segmentation=segmentation
        )

        self._parent = tier  # mainly used for alignment expressions
        self.text = text
Exemplo n.º 3
0
Arquivo: model.py Projeto: xigt/xigt
    def __init__(self, id=None, type=None,
                 alignment=None, content=None, segmentation=None,
                 attributes=None, metadata=None,
                 items=None, igt=None,
                 namespace=None, nsmap=None):
        XigtContainerMixin.__init__(self, contained_type=Item)
        XigtAttributeMixin.__init__(
            self, id=id, type=type, attributes=attributes,
            namespace=namespace, nsmap=nsmap
        )
        XigtReferenceAttributeMixin.__init__(
            self, alignment=alignment, content=content,
            segmentation=segmentation
        )
        XigtMetadataMixin.__init__(self, metadata)

        self._parent = igt
        self.extend(items or [])
Exemplo n.º 4
0
    def __init__(self,
                 id=None,
                 type=None,
                 alignment=None,
                 content=None,
                 segmentation=None,
                 attributes=None,
                 text=None,
                 tier=None,
                 namespace=None,
                 nsmap=None):
        XigtAttributeMixin.__init__(self,
                                    id=id,
                                    type=type,
                                    attributes=attributes,
                                    namespace=namespace,
                                    nsmap=nsmap)
        XigtReferenceAttributeMixin.__init__(self,
                                             alignment=alignment,
                                             content=content,
                                             segmentation=segmentation)

        self._parent = tier  # mainly used for alignment expressions
        self.text = text