Ejemplo n.º 1
0
def project_code(request):
    code = '\n'.join(
        make_ver.make_ver(
            constants.project_filename_dict.format(**request.matchdict),
            ver_name=request.matchdict['version'],
            lang=request.matchdict['selected_lang']))
    request.response.text = code
    # TODO: cache this response with beaker/dogpile?
    request.response.content_type = "text/plain"
    return request.response
Ejemplo n.º 2
0
def ver_string(project_type, project, lang, ver_name, ver_path=None):
    return '\n'.join( make_ver.make_ver(constants.project_filename % (project_type, project, lang), ver_name=ver_name, ver_path=ver_path) )
Ejemplo n.º 3
0
def ver_string(project_type, project, lang, ver_name, ver_path=None):
    return '\n'.join(
        make_ver.make_ver(constants.project_filename %
                          (project_type, project, lang),
                          ver_name=ver_name,
                          ver_path=ver_path))
Ejemplo n.º 4
0
def project_code(request):
    code = '\n'.join( make_ver.make_ver(constants.project_filename_dict.format(**request.matchdict), ver_name=request.matchdict['version'], lang=request.matchdict['selected_lang'] ) )
    request.response.text = code
    # TODO: cache this response with beaker/dogpile?
    request.response.content_type = "text/plain"
    return request.response