@property
    def element_def(self):
        s = ("%s = ElementDef('%s', '%s')\n" %
             (self.name, self.name, self.name))
        for element in self.elements:
            s += ("%s.add_child('%s', cardinality='%s')\n" %
                  (self.name, element.name, element.cardinality))
        # for attribute in self.attributes:
        #     s += '\n  %s' % attribute
        return s
blipFill = ElementDef('p:blipFill', 'CT_BlipFillProperties')
dataset/ETHPy150Open scanny/python-pptx/lab/parse_xsd/parse_xsd.py/ComplexType.element_def