Ejemplo n.º 1
0
 def __init__(self, root, definitions=None):
     """
     @param root: An XML root element.
     @type root: L{Element}
     @param definitions: A definitions object.
     @type definitions: L{Definitions}
     """
     Object.__init__(self)
     self.root = root
     pmd = Metadata()
     pmd.excludes = ['root']
     pmd.wrappers = dict(qname=repr)
     self.__metadata__.__print__ = pmd
Ejemplo n.º 2
0
 def __init__(self, root, definitions=None):
     """
     @param root: An XML root element.
     @type root: L{Element}
     @param definitions: A definitions object.
     @type definitions: L{Definitions}
     """
     Object.__init__(self)
     self.root = root
     pmd = Metadata()
     pmd.excludes = ['root']
     pmd.wrappers = dict(qname=repr)
     self.__metadata__.__print__ = pmd
Ejemplo n.º 3
0
 def __init__(self, root, definitions):
     """
     @param root: An XML root element.
     @type root: L{Element}
     @param definitions: A definitions object.
     @type definitions: L{Definitions}
     """
     NamedObject.__init__(self, root, definitions)
     pmd = Metadata()
     pmd.wrappers = dict(element=repr, type=repr)
     self.__metadata__.__print__ = pmd
     tns = definitions.tns
     self.element = self.__getref('element', tns)
     self.type = self.__getref('type', tns)
Ejemplo n.º 4
0
 def __init__(self, root, definitions):
     """
     @param root: An XML root element.
     @type root: L{Element}
     @param definitions: A definitions object.
     @type definitions: L{Definitions}
     """
     NamedObject.__init__(self, root, definitions)
     pmd = Metadata()
     pmd.wrappers = dict(element=repr, type=repr)
     self.__metadata__.__print__ = pmd
     tns = definitions.tns
     self.element = self.__getref('element', tns)
     self.type = self.__getref('type', tns)