def copr_create_module_post(copr): form = forms.CreateModuleForm(csrf_enabled=False) args = [copr, form] if "add_profile" in flask.request.values: return add_profile(*args) if "build_module" in flask.request.values: return build_module(*args)
def copr_create_module_post(copr): form = forms.CreateModuleForm(copr=copr, meta={'csrf': False}) args = [copr, form] if "add_profile" in flask.request.values: return add_profile(*args) if "build_module" in flask.request.values: return build_module(*args)
def copr_create_module(copr): form = forms.CreateModuleForm() return render_create_module(copr, form)