Did I find the right examples for you? yes no

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/p/y/python-docx-0.5.1/docx/opc/package.py   python-docx(Download)
from .compat import cls_method_fn
from .constants import RELATIONSHIP_TYPE as RT
from .oxml import CT_Relationships, nsmap, serialize_part_xml
from .packuri import PACKAGE_URI, PackURI
from .pkgreader import PackageReader
        """
        if self._element is not None:
            return serialize_part_xml(self._element)
        return self._blob
 

src/p/y/python-docx-0.5.1/docx/opc/pkgwriter.py   python-docx(Download)
 
from .constants import CONTENT_TYPE as CT
from .oxml import CT_Types, serialize_part_xml
from .packuri import CONTENT_TYPES_URI, PACKAGE_URI
from .phys_pkg import PhysPkgWriter
        ``[Content_Types].xml`` in an OPC package.
        """
        return serialize_part_xml(self._element)
 
    @classmethod

src/p/y/python-pptx-0.4.2/pptx/opc/pkgwriter.py   python-pptx(Download)
 
from .constants import CONTENT_TYPE as CT
from .oxml import CT_Types, serialize_part_xml
from .packuri import CONTENT_TYPES_URI, PACKAGE_URI
from .phys_pkg import PhysPkgWriter
        """
        content_types_blob = serialize_part_xml(
            _ContentTypesItem.xml_for(parts)
        )
        phys_writer.write(CONTENT_TYPES_URI, content_types_blob)

src/p/y/python-pptx-HEAD/pptx/opc/pkgwriter.py   python-pptx(Download)
 
from .constants import CONTENT_TYPE as CT
from .oxml import CT_Types, serialize_part_xml
from .packuri import CONTENT_TYPES_URI, PACKAGE_URI
from .phys_pkg import PhysPkgWriter
        """
        content_types_blob = serialize_part_xml(
            _ContentTypesItem.xml_for(parts)
        )
        phys_writer.write(CONTENT_TYPES_URI, content_types_blob)