示例#1
0
文件: users.py 项目: fluxspir/odontux
def delete_user_mail(body_id, form_to_display):
    if forms.delete_body_mail(body_id, "user"):
        return redirect(url_for("update_user", body_id=body_id,
                                 form_to_display="mail"))
    return redirect(url_for('list_users'))
示例#2
0
def delete_patient_mail(body_id, form_to_display):
    if forms.delete_body_mail(body_id, "patient"):
        return redirect(url_for("update_patient", body_id=body_id,
                                form_to_display="mail"))
    return redirect(url_form('list_patients'))
示例#3
0
文件: users.py 项目: fluxspir/odontux
def delete_dental_office_mail(body_id, form_to_display):
    if forms.delete_body_mail(body_id, "dental_office"):
        return redirect(url_for("update_dental_office", body_id=body_id,
                                 form_to_display="mail"))
    return redirect(url_for('list_dental_offices'))
示例#4
0
文件: md.py 项目: fluxspir/odontux
def delete_md_mail(body_id, form_to_display):
    if forms.delete_body_mail(body_id, "md"):
        return redirect(url_for("update_md", body_id=body_id, form_to_display="mail"))
    return redirect(url_for("list_md"))