-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into update_weasyprint
- Loading branch information
Showing
25 changed files
with
1,074 additions
and
27,418 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file removed
BIN
-160 Bytes
g3w-admin/client/static/client/css/DataTables-1.10.16/images/sort_asc.png
Binary file not shown.
Binary file removed
BIN
-148 Bytes
g3w-admin/client/static/client/css/DataTables-1.10.16/images/sort_asc_disabled.png
Binary file not shown.
Binary file removed
BIN
-201 Bytes
g3w-admin/client/static/client/css/DataTables-1.10.16/images/sort_both.png
Binary file not shown.
Binary file removed
BIN
-158 Bytes
g3w-admin/client/static/client/css/DataTables-1.10.16/images/sort_desc.png
Binary file not shown.
Binary file removed
BIN
-146 Bytes
...admin/client/static/client/css/DataTables-1.10.16/images/sort_desc_disabled.png
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
27,284 changes: 0 additions & 27,284 deletions
27,284
g3w-admin/client/static/client/js/vendor.min.js
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,31 @@ | ||
# coding=utf-8 | ||
"""" Utility function for session | ||
.. note:: This program is free software; you can redistribute it and/or modify | ||
it under the terms of the Mozilla Public License 2.0. | ||
""" | ||
|
||
__author__ = '[email protected]' | ||
__date__ = '2024-11-15' | ||
__copyright__ = 'Copyright 2015 - 2024, Gis3w' | ||
__license__ = 'MPL 2.0' | ||
|
||
from django.conf import settings | ||
from qdjango.models import SessionTokenFilter | ||
|
||
def reset_filtertoken(request): | ||
""" | ||
Check session token filter ad delete it | ||
:param request: Django request object | ||
""" | ||
|
||
try: | ||
if settings.SESSION_COOKIE_NAME in request.COOKIES: | ||
stf = SessionTokenFilter.objects.get( | ||
sessionid=request.COOKIES[settings.SESSION_COOKIE_NAME]) | ||
stf.delete() | ||
except AttributeError: | ||
return None | ||
except SessionTokenFilter.DoesNotExist: | ||
return None |
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