Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
synnefo
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
synnefo
Commits
c84b0d6a
Commit
c84b0d6a
authored
13 years ago
by
Vangelis Koukis
Browse files
Options
Downloads
Plain Diff
Merge branch 'api-current'
parents
1bdb6f86
80fa7bfb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.upgrade
+9
-0
9 additions, 0 deletions
README.upgrade
api/util.py
+4
-0
4 additions, 0 deletions
api/util.py
with
13 additions
and
0 deletions
README.upgrade
+
9
−
0
View file @
c84b0d6a
...
...
@@ -4,6 +4,15 @@ README.Upgrade
This file documents the upgrade to newer versions of the Synnefo software.
For more information, please see README.deploy.
v0.6.1 -> v0.6.2
API-CURRENT
* The models were changed so that Flavors and SynnefoUsers now have
a deleted state. The admin tools were updated so that models are
now marked as deleted instead of actually being deleted from the DB.
A database migration is needed.
v0.5.5 -> v0.6
ADMIN INTERFACE
* A new Web-based admin interface is available under /admin.
...
...
This diff is collapsed.
Click to expand it.
api/util.py
+
4
−
0
View file @
c84b0d6a
...
...
@@ -50,6 +50,7 @@ from django.conf import settings
from
django.http
import
HttpResponse
from
django.template.loader
import
render_to_string
from
django.utils
import
simplejson
as
json
from
django.utils.cache
import
add_never_cache_headers
from
synnefo.api.faults
import
(
Fault
,
BadRequest
,
BuildInProgress
,
ItemNotFound
,
ServiceUnavailable
,
Unauthorized
)
...
...
@@ -210,6 +211,9 @@ def update_response_headers(request, response):
if
settings
.
TEST
:
response
[
'
Date
'
]
=
format_date_time
(
time
())
add_never_cache_headers
(
response
)
def
render_metadata
(
request
,
metadata
,
use_values
=
False
,
status
=
200
):
if
request
.
serialization
==
'
xml
'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment