From 27c1850864e69c8e661baed591e2535bd57a8598 Mon Sep 17 00:00:00 2001 From: Abdur-Rahmaan Janhangeer Date: Sun, 5 Feb 2023 16:01:03 +0400 Subject: [PATCH] feat: tinymce editors fix: tinymce error --- MANIFEST.in | 1 + .../modules/box__default/appadmin/admin.py | 2 +- pythoncms/modules/box__default/auth/view.py | 5 ++--- .../page/templates/page/dashboard.html | 18 ++++++++++------- .../templates/page/view_page_dashboard.html | 20 +++++++++++-------- .../static/themes/back/sneat/authbase.html | 2 +- pythoncms/static/themes/back/sneat/base.html | 2 +- pythoncms/static/themes/back/sneat/login.html | 2 +- .../static/themes/back/sneat/unconfirmed.html | 2 +- .../static/themes/front/editorial/base.html | 1 + .../static/themes/front/editorial/page.html | 2 +- 11 files changed, 33 insertions(+), 24 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index 3b44dad..7958c01 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,6 +3,7 @@ include dev_requirements.txt exclude config.json recursive-include {projname} * recursive-exclude {projname}/instance * +recursive-exclude {projname}/migrations * recursive-exclude {projname}/static/modules * recursive-exclude {projname}/.tox * recursive-exclude __pycache__ * diff --git a/pythoncms/modules/box__default/appadmin/admin.py b/pythoncms/modules/box__default/appadmin/admin.py index 4bfba91..4ce5833 100644 --- a/pythoncms/modules/box__default/appadmin/admin.py +++ b/pythoncms/modules/box__default/appadmin/admin.py @@ -7,7 +7,7 @@ from shopyo.api.html import notify_warning login_manager.login_view = "auth.login" -login_manager.login_message = notify_warning("Please login for access") +# login_manager.login_message = "Please login for access" @login_manager.user_loader diff --git a/pythoncms/modules/box__default/auth/view.py b/pythoncms/modules/box__default/auth/view.py index ff31228..4aa7f9e 100644 --- a/pythoncms/modules/box__default/auth/view.py +++ b/pythoncms/modules/box__default/auth/view.py @@ -134,13 +134,12 @@ def login(): @login_required def logout(): logout_user() - flash("Successfully logged out", "ok") if "next" not in request.args: - next_url = url_for("dashboard.index") + next_url = url_for("www.index") else: if request.args.get("next") == "": - next_url = url_for("dashboard.index") + next_url = url_for("www.index") else: next_url = get_safe_redirect(request.args.get("next")) return redirect(next_url) diff --git a/pythoncms/modules/box__default/page/templates/page/dashboard.html b/pythoncms/modules/box__default/page/templates/page/dashboard.html index f322704..7d8254e 100644 --- a/pythoncms/modules/box__default/page/templates/page/dashboard.html +++ b/pythoncms/modules/box__default/page/templates/page/dashboard.html @@ -2,6 +2,7 @@ {%block head%} + {%endblock%} {% block content %}
@@ -40,17 +41,19 @@

New page

- + + {%endblock%} {% block content %}
@@ -36,7 +37,7 @@
{{ form.content.label }}
- +
@@ -48,17 +49,19 @@ - +