Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
?????????? ?????????? ??????? ? ???????? id
    

        def get_recipe_content(recipe_id, version):
    """ ?????????? ?????????? ??????? ? ???????? id
    """
    try:
        return open(get_recipe_file_name(recipe_id, version), 'r').read().decode('utf-8')
    except:
        return ""
        


src/j/u/junta-0.2.22/server/views.py   junta(Download)
    from backend.servertoagent import installation_request, exit_request
    from backend.server import start_server
    from backend.recipes import get_recipes, get_recipe_template, get_next_version, \
                        not_valid_error_message, create_recipe_path_if_not_exists, recipe_save, get_recipe_content, \
                        get_last_version, get_default_config, delete_recipe_version, recipe_delete, get_version_count
                c['recipe_name'] = get_recipe_name(recipe_id)
                c['recipe_version'] = recipe_version
                file_content = get_recipe_content(recipe_id, recipe_version)
                c['file_content'] = junta_xml.preprocessor(file_content, False)
            return render_to_response('recipes.html', c)