-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop'
- Loading branch information
Showing
39 changed files
with
3,955 additions
and
5,039 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.14.1 | ||
2.14.2 |
Submodule Nomenclature-api-module
updated
7 files
+1 −1 | VERSION | |
+1 −1 | dependencies/TaxHub | |
+1 −1 | dependencies/UsersHub-authentification-module | |
+8 −0 | docs/changelog.rst | |
+2 −2 | requirements.in | |
+38 −39 | requirements.txt | |
+7 −1 | src/pypnnomenclature/schemas.py |
Submodule RefGeo
updated
6 files
+9 −1 | CHANGELOG.md | |
+1 −1 | VERSION | |
+1 −1 | dependencies/Utils-Flask-SQLAlchemy-Geo | |
+1 −1 | requirements.in | |
+7 −5 | src/ref_geo/routes.py | |
+19 −0 | src/ref_geo/tests/test_ref_geo.py |
Submodule TaxHub
updated
8 files
+1 −1 | VERSION | |
+19 −14 | apptax/taxonomie/commands/migrate_taxref/README.rst | |
+1 −1 | dependencies/RefGeo | |
+1 −1 | dependencies/UsersHub-authentification-module | |
+1 −1 | dependencies/Utils-Flask-SQLAlchemy-Geo | |
+5 −0 | docs/changelog.md | |
+21 −23 | requirements-dev.txt | |
+17 −17 | requirements.txt |
Submodule UsersHub
updated
4 files
+1 −1 | VERSION | |
+8 −0 | docs/changelog.rst | |
+31 −30 | requirements-dev.txt | |
+31 −30 | requirements.txt |
Submodule UsersHub-authentification-module
updated
5 files
+1 −2 | VERSION | |
+7 −0 | docs/changelog.rst | |
+28 −31 | requirements-dev.txt | |
+25 −27 | requirements.txt | |
+21 −1 | src/pypnusershub/routes.py |
Submodule Utils-Flask-SQLAlchemy-Geo
updated
3 files
+1 −1 | VERSION | |
+8 −0 | docs/changelog.rst | |
+26 −28 | requirements.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from marshmallow import fields, validates_schema, EXCLUDE | ||
|
||
from geonature.utils.env import db, ma | ||
from geonature.core.gn_permissions.models import PermObject | ||
|
||
|
||
class PermObjectSchema(ma.SQLAlchemyAutoSchema): | ||
class Meta: | ||
model = PermObject | ||
include_fk = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,39 @@ | ||
from celery import Celery | ||
import flask | ||
from geonature.utils.env import db | ||
|
||
|
||
celery_app = Celery("geonature") | ||
class FlaskCelery(Celery): | ||
|
||
def __init__(self, *args, **kwargs): | ||
|
||
super(FlaskCelery, self).__init__(*args, **kwargs) | ||
self.patch_task() | ||
|
||
if "app" in kwargs: | ||
self.init_app(kwargs["app"]) | ||
|
||
def patch_task(self): | ||
TaskBase = self.Task | ||
_celery = self | ||
|
||
class ContextTask(TaskBase): | ||
abstract = True | ||
|
||
def __call__(self, *args, **kwargs): | ||
if hasattr(_celery, "app"): | ||
with _celery.app.app_context(): | ||
# No need for db.session.remove() since it is automatically closed | ||
# by flask-sqlalchemy when exit the app context created | ||
return TaskBase.__call__(self, *args, **kwargs) | ||
else: | ||
return TaskBase.__call__(self, *args, **kwargs) | ||
|
||
self.Task = ContextTask | ||
|
||
def init_app(self, app): | ||
self.app = app | ||
self.config_from_object(app.config) | ||
|
||
|
||
celery_app = FlaskCelery("geonature") |
Oops, something went wrong.