コード例 #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))
コード例 #2
0
ファイル: opfmanifest.py プロジェクト: mihailim/yael
    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))
コード例 #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))
コード例 #4
0
ファイル: opfmanifest.py プロジェクト: mihailim/yael
    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))