Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def make_view(req):
if req.method == "GET":
return render_template('config.html',
project_name = mfile.get_project(Category.project_name),
app_list = project.get_app_list(),
proj_name = mfile.get_project(Category.project_name),
proj_ver = mfile.get_project(Category.project_version),
proj_author = mfile.get_project(Category.project_author),
proj_git = mfile.get_project(Category.project_git),
proj_license = mfile.get_project(Category.project_license),
proj_msg = mfile.get_project(Category.project_description)
)
if req.method == "POST":
return render_template('config.html',
project_name = project.get_project_name(),
app_list = project.get_app_list(),
proj_name = mfile.get_project(Category.project_name),
proj_ver = mfile.get_project(Category.project_version),
proj_author = mfile.get_project(Category.project_author),
def make_view(req):
if req.method == "GET":
return render_template('config.html',
project_name = mfile.get_project(Category.project_name),
app_list = project.get_app_list(),
proj_name = mfile.get_project(Category.project_name),
proj_ver = mfile.get_project(Category.project_version),
proj_author = mfile.get_project(Category.project_author),
proj_git = mfile.get_project(Category.project_git),
proj_license = mfile.get_project(Category.project_license),
proj_msg = mfile.get_project(Category.project_description)
)
if req.method == "POST":
return render_template('config.html',
project_name = project.get_project_name(),
app_list = project.get_app_list(),
proj_name = mfile.get_project(Category.project_name),
proj_ver = mfile.get_project(Category.project_version),
proj_author = mfile.get_project(Category.project_author),
proj_git = mfile.get_project(Category.project_git),
proj_license = mfile.get_project(Category.project_license),
proj_msg = mfile.get_project(Category.project_description)
def make_view():
return render_template('config_django.html',
project_name = project.get_project_name(),
app_list = project.get_app_list(),
proj_name = mfile.get_project(Category.project_name),
proj_ver = mfile.get_project(Category.project_version),
proj_author = mfile.get_project(Category.project_author),
proj_git = mfile.get_project(Category.project_git),
proj_license = mfile.get_project(Category.project_license),
proj_msg = mfile.get_project(Category.project_description),
)
def make_view():
return render_template('config_nodejs.html',
project_name = project.get_project_name(),
app_list = project.get_app_list(),
proj_name = mfile.get_project(Category.project_name),
proj_ver = mfile.get_project(Category.project_version),
proj_author = mfile.get_project(Category.project_author),
proj_git = mfile.get_project(Category.project_git),
proj_license = mfile.get_project(Category.project_license),
proj_msg = mfile.get_project(Category.project_description),
)
def make_view():
return render_template('config_nodejs.html',
project_name = project.get_project_name(),
app_list = project.get_app_list(),
proj_name = mfile.get_project(Category.project_name),
proj_ver = mfile.get_project(Category.project_version),
proj_author = mfile.get_project(Category.project_author),
proj_git = mfile.get_project(Category.project_git),
proj_license = mfile.get_project(Category.project_license),
proj_msg = mfile.get_project(Category.project_description),
)
def make_view():
return render_template('config_django.html',
project_name = project.get_project_name(),
app_list = project.get_app_list(),
proj_name = mfile.get_project(Category.project_name),
proj_ver = mfile.get_project(Category.project_version),
proj_author = mfile.get_project(Category.project_author),
proj_git = mfile.get_project(Category.project_git),
proj_license = mfile.get_project(Category.project_license),
proj_msg = mfile.get_project(Category.project_description),
)
def get_project(item):
data = load_miragefile()
if item == MiragefileDataCategory.project_name:
return data["project"]["name"]
elif item == MiragefileDataCategory.project_version:
return data["project"]["version"]
elif item == MiragefileDataCategory.project_author:
return data["project"]["author"]
elif item == MiragefileDataCategory.project_git:
return data["project"]["git"]
elif item == MiragefileDataCategory.project_license:
return data["project"]["license"]
elif item == MiragefileDataCategory.project_description:
return data["project"]["description"]
else:
log("The config information named " + item + " does not exist!", withError = True)
return load_failed()
def get_project(item):
data = load_miragefile()
if item == MiragefileDataCategory.project_name:
return data["project"]["name"]
elif item == MiragefileDataCategory.project_version:
return data["project"]["version"]
elif item == MiragefileDataCategory.project_author:
return data["project"]["author"]
elif item == MiragefileDataCategory.project_git:
return data["project"]["git"]
elif item == MiragefileDataCategory.project_license:
return data["project"]["license"]
elif item == MiragefileDataCategory.project_description:
return data["project"]["description"]
else:
log("The config information named " + item + " does not exist!", withError = True)
return load_failed()
def get_project(item):
data = load_miragefile()
if item == MiragefileDataCategory.project_name:
return data["project"]["name"]
elif item == MiragefileDataCategory.project_version:
return data["project"]["version"]
elif item == MiragefileDataCategory.project_author:
return data["project"]["author"]
elif item == MiragefileDataCategory.project_git:
return data["project"]["git"]
elif item == MiragefileDataCategory.project_license:
return data["project"]["license"]
elif item == MiragefileDataCategory.project_description:
return data["project"]["description"]
else:
log("The config information named " + item + " does not exist!", withError = True)
return load_failed()
def make_view():
return render_template('config_nodejs.html',
project_name = project.get_project_name(),
app_list = project.get_app_list(),
proj_name = mfile.get_project(Category.project_name),
proj_ver = mfile.get_project(Category.project_version),
proj_author = mfile.get_project(Category.project_author),
proj_git = mfile.get_project(Category.project_git),
proj_license = mfile.get_project(Category.project_license),
proj_msg = mfile.get_project(Category.project_description),
)