Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
96318b72
Commit
96318b72
authored
Jun 30, 2018
by
Gabriel Detraz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Legacy shaebang pour python2
parent
a84e8b55
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
11 additions
and
0 deletions
+11
-0
api/acl.py
api/acl.py
+1
-0
api/authentication.py
api/authentication.py
+2
-0
api/pagination.py
api/pagination.py
+1
-0
api/permissions.py
api/permissions.py
+1
-0
api/routers.py
api/routers.py
+1
-0
api/serializers.py
api/serializers.py
+1
-0
api/settings.py
api/settings.py
+1
-0
api/tests.py
api/tests.py
+1
-0
api/urls.py
api/urls.py
+1
-0
api/views.py
api/views.py
+1
-0
No files found.
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
Markdown
is supported
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