Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Romain Courteaud
slapos.core
Commits
b8bc61a5
Commit
b8bc61a5
authored
May 15, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reply with API date.
API date is based on developer time, not document modification time.
parent
a1b0868d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
master/product/Vifib/Tool/VifibRestApiV1Tool.py
master/product/Vifib/Tool/VifibRestApiV1Tool.py
+5
-2
No files found.
master/product/Vifib/Tool/VifibRestApiV1Tool.py
View file @
b8bc61a5
...
@@ -455,10 +455,13 @@ class VifibRestApiV1Tool(BaseTool):
...
@@ -455,10 +455,13 @@ class VifibRestApiV1Tool(BaseTool):
[
'Manager'
,])
[
'Manager'
,])
BaseTool
.
inheritedAttribute
(
'manage_afterAdd'
)(
self
,
item
,
container
)
BaseTool
.
inheritedAttribute
(
'manage_afterAdd'
)(
self
,
item
,
container
)
@
supportModifiedSince
()
# set this date to moment of API modification
api_modification_date
=
DateTime
(
'2012/05/15 11:36 GMT+2'
)
@
supportModifiedSince
(
modified_property_id
=
'api_modification_date'
)
def
__api_discovery
(
self
):
def
__api_discovery
(
self
):
self
.
REQUEST
.
response
.
setHeader
(
'Last-Modified'
,
self
.
REQUEST
.
response
.
setHeader
(
'Last-Modified'
,
rfc1123_date
(
self
.
bobobase_modification_time
()
))
rfc1123_date
(
self
.
api_modification_date
))
self
.
REQUEST
.
response
.
setHeader
(
'Cache-Control'
,
'public'
)
self
.
REQUEST
.
response
.
setHeader
(
'Cache-Control'
,
'public'
)
self
.
REQUEST
.
response
.
setStatus
(
200
)
self
.
REQUEST
.
response
.
setStatus
(
200
)
d
=
{
'access_point'
:
[{
d
=
{
'access_point'
:
[{
...
...
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