Ejemplo n.º 1
0
def get_response_content(fs):
    """
    @param fs: a FieldStorage object containing the cgi arguments
    @return: the response
    """
    tikz_body = "\n".join(get_tikz_lines(fs))
    tikzpicture = tikz.get_picture(tikz_body, "auto")
    return tikz.get_response(tikzpicture, fs.tikzformat, tikz.get_w_color_package_set(), tikz.get_w_color_preamble())
Ejemplo n.º 2
0
def get_response_content(fs):
    """
    @param fs: a FieldStorage object containing the cgi arguments
    @return: the response
    """
    tikz_body = '\n'.join(get_tikz_lines(fs))
    tikzpicture = tikz.get_picture(tikz_body, 'auto')
    return tikz.get_response(tikzpicture, fs.tikzformat,
                             tikz.get_w_color_package_set(),
                             tikz.get_w_color_preamble())
Ejemplo n.º 3
0
def get_response_content(fs):
    """
    @param fs: a FieldStorage object containing the cgi arguments
    @return: the response
    """
    tikz_body = get_tikzpicture_body(fs.ncurves, fs.nsegs, fs.morph)
    tikzpicture = tikz.get_picture(tikz_body, 'auto')
    return tikz.get_response(
            tikzpicture, fs.tikzformat,
            tikz.get_w_color_package_set(), tikz.get_w_color_preamble())