Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
c84b0d6a
Commit
c84b0d6a
authored
Sep 15, 2011
by
Vangelis Koukis
Browse files
Merge branch 'api-current'
parents
1bdb6f86
80fa7bfb
Changes
2
Show whitespace changes
Inline
Side-by-side
README.upgrade
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.
...
...
api/util.py
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
)
...
...
@@ -211,6 +212,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'
:
data
=
render_to_string
(
'metadata.xml'
,
{
'metadata'
:
metadata
})
...
...
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