

@classmethod
def xml_for(cls, parts):
    '\n        Return content types XML mapping each part in *parts* to the\n        appropriate content type and suitable for storage as\n        ``[Content_Types].xml`` in an OPC package.\n        '
    cti = cls()
    cti._defaults['rels'] = CT.OPC_RELATIONSHIPS
    cti._defaults['xml'] = CT.XML
    for part in parts:
        cti._add_content_type(part.partname, part.content_type)
    return cls._xml()

dataset/ETHPy150Open scanny/python-pptx/pptx/opc/pkgwriter.py _ContentTypesItem.xml_for/VarMisuse@67/157 `cti`->`cls`