From 4afa72a59f6bed9c66993fc8cece9b557baf3951 Mon Sep 17 00:00:00 2001 From: Yann Sionneau Date: Sat, 4 Nov 2023 17:27:07 +0100 Subject: [PATCH 1/4] Upgrade to version 2.8 Signed-off-by: Yann Sionneau --- manifest.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifest.toml b/manifest.toml index ddeba9b..a64bf9a 100644 --- a/manifest.toml +++ b/manifest.toml @@ -6,7 +6,7 @@ name = "Pytition" description.en = "Host privacy-friendly online petitions" description.fr = "Hébergez des pétitions en ligne respectueuses de la vie privée" -version = "2.7~ynh2" +version = "2.8~ynh1" maintainers = ["Salamandar"] @@ -58,8 +58,8 @@ ram.runtime = "50M" [resources] [resources.sources.main] - url = "https://github.com/pytition/Pytition/archive/refs/tags/v2.7.tar.gz" - sha256 = "3ed7ea64765a259a453cbd58569ed0177e40a4f248995bd0c613966d1d40d60e" + url = "https://github.com/pytition/Pytition/archive/refs/tags/v2.8.tar.gz" + sha256 = "4e27c80401114f9c7b79ce24668fc0a40b43023b38ebe9e76c120f652f498f41" [resources.system_user] From ec6b2172a6009fe7b22d9bc0c973f2e782a9937a Mon Sep 17 00:00:00 2001 From: yunohost-bot Date: Sun, 5 Nov 2023 21:35:17 +0000 Subject: [PATCH 2/4] Auto-update README --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 473400f..61dcda4 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Pytition is an application for privacy-friendly online petitions you can host on - You can export signatures in CSV format. -**Shipped version:** 2.7~ynh2 +**Shipped version:** 2.8~ynh1 **Demo:** https://demo.pytition.org diff --git a/README_fr.md b/README_fr.md index b82b07a..69bb2c0 100644 --- a/README_fr.md +++ b/README_fr.md @@ -29,7 +29,7 @@ Pytition permet d'héberger des pétitions respectueuses de la vie privée sur v - Vous pouvez exporter les signatures via CSV. -**Version incluse :** 2.7~ynh2 +**Version incluse :** 2.8~ynh1 **Démo :** https://demo.pytition.org From 6f962504a270ef9da3c893d36994b2446969d71f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 7 Nov 2023 14:23:47 +0100 Subject: [PATCH 3/4] Fix config.py, tinymce_url does not need to be set anymore --- conf/config.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/conf/config.py b/conf/config.py index 8f1d725..5be5dcc 100644 --- a/conf/config.py +++ b/conf/config.py @@ -1,3 +1,7 @@ +#!/usr/bin/env python3 + +import os + from pytition.settings.base import * SECRET_KEY = '__SECRET_KEY__' @@ -26,12 +30,6 @@ ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '[::1]', '__DOMAIN__'] # # ################################# -import os - -# This needs to be redefined because STATIC_URL might be set in this config -# after TINYMCE_JS_URL was defined -TINYMCE_JS_URL = STATIC_URL + TINYMCE_JS_PATH - if DEFAULT_INDEX_THUMBNAIL == "": print("Please set a default index thumbnail or your index page will not be very beautiful") From 96ade83a98214a3ac97fe21c7edc1fc3caecdbb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Tue, 7 Nov 2023 14:37:27 +0100 Subject: [PATCH 4/4] Fix admin username --- doc/POST_INSTALL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/POST_INSTALL.md b/doc/POST_INSTALL.md index d0682fe..9792791 100644 --- a/doc/POST_INSTALL.md +++ b/doc/POST_INSTALL.md @@ -1,4 +1,4 @@ Your credentials for the admin panel are: -- admin username: `admin` -- admin password: the password you chose before install \ No newline at end of file +- admin username: `__ADMIN__` +- admin password: the password you chose before install