Exemplo n.º 1
0
    def font_items(self):
        """
        The list of items with `media-type` associated with font formats.

        :rtype: list of :class:`yael.opfitem.OPFItem` objects
        """
        return list(e for e in self.items if MediaType.is_font(e.media_type))
Exemplo n.º 2
0
    def video_items(self):
        """
        The list of items with `media-type` associated with video formats.

        :rtype: list of :class:`yael.opfitem.OPFItem` objects
        """
        return list(e for e in self.items if MediaType.is_video(e.v_media_type))
Exemplo n.º 3
0
    def content_document_items(self):
        """
        The list of items corresponding to Content Documents.

        :rtype: list of :class:`yael.opfitem.OPFItem` objects
        """
        return list(e for e in self.items
                    if MediaType.is_content_document(e.v_media_type))
Exemplo n.º 4
0
    def content_document_items(self):
        """
        The list of items corresponding to Content Documents.

        :rtype: list of :class:`yael.opfitem.OPFItem` objects
        """
        return list(e for e in self.items if MediaType.is_content_document(
            e.v_media_type))