示例#1
0
def get_output_format_content_type(of):
    """
    Returns the content type (eg. 'text/html' or 'application/ms-excel') \
    of the given output format.

    @param of: the code of output format for which we want to get the content type
    """
    content_type = bibformat_dblayer.get_output_format_content_type(of)

    if content_type == '':
        content_type = 'text/html'

    return content_type
示例#2
0
def get_output_format_content_type(of):
    """
    Returns the content type (for example 'text/html' or 'application/ms-excel') \
    of the given output format.

    @param of: the code of output format for which we want to get the content type
    """
    content_type = bibformat_dblayer.get_output_format_content_type(of)

    if content_type == '':
        content_type = 'text/html'

    return content_type
示例#3
0
def get_output_format_content_type(of, default_content_type="text/html"):
    """
    Returns the content type (for example 'text/html' or 'application/ms-excel') \
    of the given output format.

    @param of: the code of output format for which we want to get the content type
    @param default_content_type: default content-type when content-type was not set up
    """
    content_type = bibformat_dblayer.get_output_format_content_type(of)

    if content_type == '':
        content_type = default_content_type

    return content_type
示例#4
0
def get_output_format_content_type(of):
    """
    Returns the content type (for example 'text/html' or 'application/ms-excel') \
    of the given output format.

    @param of: the code of output format for which we want to get the content type
    @return: the content-type to use for this output format
    """
    content_type = bibformat_dblayer.get_output_format_content_type(of)

    if content_type == "":
        content_type = "text/html"

    return content_type