Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Re2o
re2o
Commits
96318b72
Commit
96318b72
authored
Jun 30, 2018
by
Gabriel Detraz
Browse files
Legacy shaebang pour python2
parent
a84e8b55
Pipeline
#955
passed with stage
in 2 minutes and 46 seconds
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
api/acl.py
View file @
96318b72
# -*- mode: python; coding: utf-8 -*-
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
...
...
api/authentication.py
View file @
96318b72
# -*- mode: python; coding: utf-8 -*-
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
...
...
@@ -43,6 +44,7 @@ class ExpiringTokenAuthentication(TokenAuthentication):
)
utc_now
=
datetime
.
datetime
.
now
(
datetime
.
timezone
.
utc
)
if
token
.
created
<
utc_now
-
token_duration
:
raise
ValueError
(
'boom'
)
raise
exceptions
.
AuthenticationFailed
(
_
(
'Token has expired'
))
return
(
token
.
user
,
token
)
api/pagination.py
View file @
96318b72
# -*- mode: python; coding: utf-8 -*-
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
...
...
api/permissions.py
View file @
96318b72
# -*- mode: python; coding: utf-8 -*-
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
...
...
api/routers.py
View file @
96318b72
# -*- mode: python; coding: utf-8 -*-
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
...
...
api/serializers.py
View file @
96318b72
# -*- mode: python; coding: utf-8 -*-
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
...
...
api/settings.py
View file @
96318b72
# -*- mode: python; coding: utf-8 -*-
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
...
...
api/tests.py
View file @
96318b72
# -*- mode: python; coding: utf-8 -*-
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
...
...
api/urls.py
View file @
96318b72
# -*- mode: python; coding: utf-8 -*-
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
...
...
api/views.py
View file @
96318b72
# -*- mode: python; coding: utf-8 -*-
# Re2o est un logiciel d'administration développé initiallement au rezometz. Il
# se veut agnostique au réseau considéré, de manière à être installable en
# quelques clics.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment