mirror of
https://github.com/YunoHost-Apps/pytition_ynh.git
synced 2024-09-03 20:16:08 +02:00
Update to Pytition 2.5.1 and fix user image uploads and TinyMCE editors
When uploading images in mediaroot, files must have gid www-data so that nginx can serve them. Also, image upload script URL for TinyMCE editor was wrong if STATIC_ROOT is not '/static/' Tinymce js url was wrong in this case also.
This commit is contained in:
parent
3dcc2a8051
commit
da29c0bc0c
7 changed files with 30 additions and 32 deletions
21
README.md
21
README.md
|
@ -5,7 +5,7 @@ It shall NOT be edited by hand.
|
||||||
|
|
||||||
# Pytition for YunoHost
|
# Pytition for YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/pytition)  
|
[](https://dash.yunohost.org/appci/app/pytition)  
|
||||||
[](https://install-app.yunohost.org/?app=pytition)
|
[](https://install-app.yunohost.org/?app=pytition)
|
||||||
|
|
||||||
*[Lire ce readme en français.](./README_fr.md)*
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
|
@ -28,13 +28,13 @@ Pytition is an application for privacy-friendly online petitions you can host on
|
||||||
- You can export signatures in CSV format.
|
- You can export signatures in CSV format.
|
||||||
|
|
||||||
|
|
||||||
**Shipped version:** 2.4~ynh1
|
**Shipped version:** 2.5.1~ynh1
|
||||||
|
|
||||||
**Demo:** https://demo.pytition.org
|
**Demo:** https://demo.pytition.org
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Disclaimers / important information
|
## Disclaimers / important information
|
||||||
|
|
||||||
|
@ -42,22 +42,21 @@ Pytition is an application for privacy-friendly online petitions you can host on
|
||||||
|
|
||||||
## Documentation and resources
|
## Documentation and resources
|
||||||
|
|
||||||
* Official app website: <https://pytition.org>
|
* Official app website: https://pytition.org
|
||||||
* Official admin documentation: <https://pytition.readthedocs.io/en/latest/>
|
* Official admin documentation: https://pytition.readthedocs.io/en/latest/
|
||||||
* Upstream app code repository: <https://github.com/pytition/Pytition>
|
* Upstream app code repository: https://github.com/pytition/Pytition
|
||||||
* YunoHost documentation for this app: <https://yunohost.org/app_pytition>
|
* YunoHost documentation for this app: https://yunohost.org/app_pytition
|
||||||
* Report a bug: <https://github.com/YunoHost-Apps/pytition_ynh/issues>
|
* Report a bug: https://github.com/YunoHost-Apps/pytition_ynh/issues
|
||||||
|
|
||||||
## Developer info
|
## Developer info
|
||||||
|
|
||||||
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/pytition_ynh/tree/testing).
|
Please send your pull request to the [testing branch](https://github.com/YunoHost-Apps/pytition_ynh/tree/testing).
|
||||||
|
|
||||||
To try the testing branch, please proceed like that.
|
To try the testing branch, please proceed like that.
|
||||||
|
```
|
||||||
``` bash
|
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/pytition_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/pytition_ynh/tree/testing --debug
|
||||||
or
|
or
|
||||||
sudo yunohost app upgrade pytition -u https://github.com/YunoHost-Apps/pytition_ynh/tree/testing --debug
|
sudo yunohost app upgrade pytition -u https://github.com/YunoHost-Apps/pytition_ynh/tree/testing --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
**More info regarding app packaging:** <https://yunohost.org/packaging_apps>
|
**More info regarding app packaging:** https://yunohost.org/packaging_apps
|
27
README_fr.md
27
README_fr.md
|
@ -1,14 +1,10 @@
|
||||||
<!--
|
|
||||||
N.B.: This README was automatically generated by https://github.com/YunoHost/apps/tree/master/tools/README-generator
|
|
||||||
It shall NOT be edited by hand.
|
|
||||||
-->
|
|
||||||
|
|
||||||
# Pytition pour YunoHost
|
# Pytition pour YunoHost
|
||||||
|
|
||||||
[](https://dash.yunohost.org/appci/app/pytition)  
|
[](https://dash.yunohost.org/appci/app/pytition)  
|
||||||
[](https://install-app.yunohost.org/?app=pytition)
|
[](https://install-app.yunohost.org/?app=pytition)
|
||||||
|
|
||||||
*[Read this readme in english.](./README.md)*
|
*[Read this readme in english.](./README.md)*
|
||||||
|
*[Lire ce readme en français.](./README_fr.md)*
|
||||||
|
|
||||||
> *Ce package vous permet d'installer Pytition rapidement et simplement sur un serveur YunoHost.
|
> *Ce package vous permet d'installer Pytition rapidement et simplement sur un serveur YunoHost.
|
||||||
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter.*
|
||||||
|
@ -28,13 +24,13 @@ Pytition permet d'héberger des pétitions respectueuses de la vie privée sur v
|
||||||
- Vous pouvez exporter les signatures via CSV.
|
- Vous pouvez exporter les signatures via CSV.
|
||||||
|
|
||||||
|
|
||||||
**Version incluse :** 2.4~ynh1
|
**Version incluse :** 2.5.1~ynh1
|
||||||
|
|
||||||
**Démo :** https://demo.pytition.org
|
**Démo :** https://demo.pytition.org
|
||||||
|
|
||||||
## Captures d'écran
|
## Captures d'écran
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Avertissements / informations importantes
|
## Avertissements / informations importantes
|
||||||
|
|
||||||
|
@ -42,22 +38,21 @@ Pytition permet d'héberger des pétitions respectueuses de la vie privée sur v
|
||||||
|
|
||||||
## Documentations et ressources
|
## Documentations et ressources
|
||||||
|
|
||||||
* Site officiel de l'app : <https://pytition.org>
|
* Site officiel de l'app : https://pytition.org
|
||||||
* Documentation officielle de l'admin : <https://pytition.readthedocs.io/en/latest/>
|
* Documentation officielle de l'admin : https://pytition.readthedocs.io/en/latest/
|
||||||
* Dépôt de code officiel de l'app : <https://github.com/pytition/Pytition>
|
* Dépôt de code officiel de l'app : https://github.com/pytition/Pytition
|
||||||
* Documentation YunoHost pour cette app : <https://yunohost.org/app_pytition>
|
* Documentation YunoHost pour cette app : https://yunohost.org/app_pytition
|
||||||
* Signaler un bug : <https://github.com/YunoHost-Apps/pytition_ynh/issues>
|
* Signaler un bug : https://github.com/YunoHost-Apps/pytition_ynh/issues
|
||||||
|
|
||||||
## Informations pour les développeurs
|
## Informations pour les développeurs
|
||||||
|
|
||||||
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/pytition_ynh/tree/testing).
|
Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/pytition_ynh/tree/testing).
|
||||||
|
|
||||||
Pour essayer la branche testing, procédez comme suit.
|
Pour essayer la branche testing, procédez comme suit.
|
||||||
|
```
|
||||||
``` bash
|
|
||||||
sudo yunohost app install https://github.com/YunoHost-Apps/pytition_ynh/tree/testing --debug
|
sudo yunohost app install https://github.com/YunoHost-Apps/pytition_ynh/tree/testing --debug
|
||||||
ou
|
ou
|
||||||
sudo yunohost app upgrade pytition -u https://github.com/YunoHost-Apps/pytition_ynh/tree/testing --debug
|
sudo yunohost app upgrade pytition -u https://github.com/YunoHost-Apps/pytition_ynh/tree/testing --debug
|
||||||
```
|
```
|
||||||
|
|
||||||
**Plus d'infos sur le packaging d'applications :** <https://yunohost.org/packaging_apps>
|
**Plus d'infos sur le packaging d'applications :** https://yunohost.org/packaging_apps
|
|
@ -1,5 +1,5 @@
|
||||||
SOURCE_URL=https://github.com/pytition/Pytition/archive/refs/tags/v2.4.tar.gz
|
SOURCE_URL=https://github.com/pytition/Pytition/archive/refs/tags/v2.5.1.tar.gz
|
||||||
SOURCE_SUM=466c788139fc90049a42d084472df36ea0f15b46766777f248ce989e3dbebcc4
|
SOURCE_SUM=cc65f0b10d0e38f89adeba64a2db2439721d564528ee278cf65dbc371982f501
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
|
|
|
@ -28,6 +28,10 @@ ALLOWED_HOSTS = ['127.0.0.1', 'localhost', '[::1]', '__DOMAIN__']
|
||||||
|
|
||||||
import os
|
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 == "":
|
if DEFAULT_INDEX_THUMBNAIL == "":
|
||||||
print("Please set a default index thumbnail or your index page will not be very beautiful")
|
print("Please set a default index thumbnail or your index page will not be very beautiful")
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ After=network.target mysql.service
|
||||||
[Service]
|
[Service]
|
||||||
Type=notify
|
Type=notify
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=www-data
|
||||||
WorkingDirectory=__FINALPATH__
|
WorkingDirectory=__FINALPATH__
|
||||||
RuntimeDirectory=__APP__
|
RuntimeDirectory=__APP__
|
||||||
ExecStart=uwsgi --yaml __FINALPATH__/uwsgi.yaml --die-on-term
|
ExecStart=uwsgi --yaml __FINALPATH__/uwsgi.yaml --die-on-term
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
uwsgi:
|
uwsgi:
|
||||||
# Who will run the code
|
# Who will run the code
|
||||||
uid: __APP__
|
uid: __APP__
|
||||||
gid: __APP__
|
gid: www-data
|
||||||
|
|
||||||
# Number of workers
|
# Number of workers
|
||||||
workers: 10
|
workers: 10
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "Host privacy-friendly online petitions",
|
"en": "Host privacy-friendly online petitions",
|
||||||
"fr": "Hébergez des pétitions en ligne respectueuses de la vie privée"
|
"fr": "Hébergez des pétitions en ligne respectueuses de la vie privée"
|
||||||
},
|
},
|
||||||
"version": "2.4~ynh1",
|
"version": "2.5.1~ynh1",
|
||||||
"url": "https://example.com",
|
"url": "https://example.com",
|
||||||
"upstream": {
|
"upstream": {
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
|
|
Loading…
Add table
Reference in a new issue