Valentin Deniaud
1dd4eda05f
misc: apply double-quote-string-fixer ( #79788 )
2023-08-16 11:53:10 +02:00
Benjamin Dauvergne
fe2b44ab29
misc: silence pylint warning ( #72942 )
...
@logit
def head(self, request, partner_name, cut_uuid, petal_name):
-> pylint: An attribute defined in django.views.generic.base line 85 hides this method
It comes from some conditional code in the base View class:
class View:
...
def setup(self, request, *args, **kwargs):
"""Initialize attributes shared by all view methods."""
if hasattr(self, 'get') and not hasattr(self, 'head'):
self.head = self.get
2023-01-10 19:18:45 +01:00
Benjamin Dauvergne
3f70e53875
dj32: replace url by re_path ( #72942 )
2023-01-10 18:48:52 +01:00
Benjamin Dauvergne
321be9396c
dj32: replace ugettext_lazy by gettext_lazy ( #72942 )
2023-01-10 18:47:44 +01:00
Frédéric Péters
d028208383
misc: always check idp certificate ( #68471 )
2022-08-29 08:22:20 +02:00
Frédéric Péters
9e7d2f1640
misc: always set a timeout on requests ( #68471 )
2022-08-29 08:22:20 +02:00
Benjamin Dauvergne
cc6a534ba4
Use verify=True to remove requests warnings
2022-04-30 12:57:46 +02:00
Benjamin Dauvergne
9f183d7e0a
clean: remove files and take partner's info on command line
2022-04-29 23:40:50 +02:00
Benjamin Dauvergne
aed59546fc
misc: fix typo PETALE_AUTHENTIC_CREDS -> PETALE_AUTHENTIC_AUTH ( #646950
2022-04-29 11:51:45 +02:00
Benjamin Dauvergne
b49f8dc0c8
misc: add clean command ( #60348 )
...
Delete CUT and Petal models for deleted GLC accounts.
2022-03-17 19:03:31 +01:00
Benjamin Dauvergne
af7e404f84
tox: fix pylint
2022-03-10 17:14:41 +01:00
Benjamin Dauvergne
2ce0cf927e
tox: add code-style target
2022-03-10 17:01:25 +01:00
Benjamin Dauvergne
283a0eae60
misc: remove byte strings in migrations
2022-03-10 16:57:24 +01:00
Benjamin Dauvergne
75dc1f103b
api_views: use atomicwrites for writing petale content ( #41379 )
2020-04-09 13:09:57 +02:00
Benjamin Dauvergne
7b292a2c17
api_views: use loop to prevent NFS errors on GET ( #41379 )
...
File can disapear more frequently on NFS as open() is not atomic (NFS filehandle
refers to an inode but they don't lock it like an open file descriptor).
2020-04-09 13:09:57 +02:00
Benjamin Dauvergne
b1e015a398
misc: style ( #41302 )
2020-04-06 14:06:40 +02:00
Benjamin Dauvergne
4524cb32e0
misc: python3 compatibility ( #41302 )
2020-04-06 14:06:40 +02:00
Benjamin Dauvergne
f7d4dc6b1b
dj111: use MIDDLEWARE ( #41302 )
2020-04-06 14:06:40 +02:00
Benjamin Dauvergne
3100df5004
dj111: do not use include ( #41302 )
2020-04-06 14:06:40 +02:00
Benjamin Dauvergne
34d434e557
dj111: set on_delete=models.CASCADE ( #41302 )
2020-04-06 14:06:40 +02:00
Benjamin Dauvergne
8849b47fe8
admin: do not link to petale view on the partner name use the id
2018-03-30 12:00:13 +02:00
Benjamin Dauvergne
c3dbb781a9
add setting to disable UUID check on authentic ( fixes #21453 )
2018-01-26 22:24:06 +01:00
Benjamin Dauvergne
963582bfcf
django 1.11 support ( fixes #21116 )
2018-01-26 18:46:33 +01:00
Benjamin Dauvergne
d04235f7a4
models: change path construction in petal_directory ( fixes #21111 )
...
Use an md5 hash of the CUT.uuid instead of the first 4 characters which
are constant now.
2018-01-26 18:20:26 +01:00
Benjamin Dauvergne
15dffd5bfb
make Cut.uuid unique ( fixes #21002 )
2018-01-10 14:19:53 +01:00
Benjamin Dauvergne
567731d6bd
fix pylint warnings as exercise
2017-10-18 16:53:51 +02:00
Benjamin Dauvergne
3ad3bb14d3
models: use kilobytes in size limits, use bigintegerfield for partner.size ( fixes #19497 )
...
Make test on partner size limits clearer by nost using JSON, and just sending
plain text documents of the needed sizes.
2017-10-18 16:32:15 +02:00
Benjamin Dauvergne
a968380ae5
ensure concurrent PUT does not raise an IntegrityError ( fixes #19384 )
2017-10-11 18:23:13 +02:00
Benjamin Dauvergne
2a1cec8205
api_views: test if file exists before returning the StreamingHttpResponse
2017-09-27 17:26:59 +02:00
Benjamin Dauvergne
430a9d0fbc
renvoyer key-not-found sur un GET d'une clé inconnue d'un pétale existant ( fixes #17810 )
2017-07-26 16:11:21 +02:00
Benjamin Dauvergne
078242c3d3
api_views: create CUT object when CUT is known from authentic but not from petale
2017-07-26 00:08:47 +02:00
Benjamin Dauvergne
550120441b
api_views: do not check SSL certificate of authentic, we are in a walled garden
2017-07-21 14:57:05 +02:00
Benjamin Dauvergne
f974052a2b
api_views: log when a CUT id is unknown
2017-07-21 14:56:45 +02:00
Benjamin Dauvergne
558d2f7a5f
enlarge CUT.uuid to accomodate encrypted pairwise subs (less thant 100 bytes usually)
2017-07-21 14:17:33 +02:00
Benjamin Dauvergne
8be9cea025
api_views: use received credentials when checking cut_id on authentic
2017-07-21 14:16:25 +02:00
Benjamin Dauvergne
0e65ac6b9f
authentication: log more, return error from authentic on credentials check
2017-07-21 14:15:53 +02:00
Benjamin Dauvergne
5fc1335637
authentication: do not check SSL certificate, we are in a closed garden
2017-07-21 14:14:54 +02:00
Josue Kouka
fc3b6e5ae1
add idp based cut control ( #14976 )
2017-07-21 10:53:43 +02:00
Josue Kouka
cde0489217
api: add cut's petals purge ( #17605 )
2017-07-19 17:00:45 +02:00
Josue Kouka
577ae9e5d5
fix: RP client saving after proxy authentication ( #17548 )
2017-07-12 10:20:45 +02:00
Frédéric Péters
7e9b9dad4f
settings: remove typo in logging configuration ( #16922 )
2017-06-15 16:25:52 +02:00
Josue Kouka
a47fa1b264
deleguate authentication to authentic ( #16579 )
2017-06-14 00:21:10 +02:00
Josue Kouka
481e058420
return 404 if cut uuid length over 32 ( #16649 )
2017-06-01 12:34:34 +02:00
Benjamin Dauvergne
7b242a4fc5
api: fix extraction of If-Match header in DELETE endpoint ( fixes #15791 )
2017-04-07 10:14:00 +02:00
Benjamin Dauvergne
3db90a8004
api: handle PreconditionException in the DELETE endpoint ( fixes #15791 )
2017-04-07 09:52:51 +02:00
Benjamin Dauvergne
f745b52099
fix typo ( fixes #15705 )
2017-03-31 16:00:09 +02:00
Frédéric Péters
fc7b099cc6
fix exception handling for missing partners ( #15685 )
2017-03-30 08:52:40 +02:00
Benjamin Dauvergne
efe31c8e3b
add french locale
2017-03-30 01:03:54 +02:00
Benjamin Dauvergne
60b1b8be77
change Petal.__unicode__
2017-03-30 01:01:36 +02:00
Benjamin Dauvergne
6e28566185
improve models
...
- add ordering
- add uniquess to Partner.name
- allow admin_emails to be blank
- add clean method to Petal to help in adding petals from admin
- add help_text to all integer fields to give size unit
- add missing verbose_name to models
2017-03-30 01:01:36 +02:00