Statistics
| Branch: | Tag: | Revision:

root / snf-django-lib / snf_django @ b698d39d

# Date Author Comment
b698d39d 04/16/2013 08:22 pm Christos Stavrakakis

Fix API decorator response Content-Type

Remove check for response Content-Type, since 'django.http.HttpResponse'
has always a default Content-Type of 'text/html; charset=utf-8'. Views
defining their response 'Content-Type' should set the
'override_serialization' attribute of response to 'True'.

47ef53d5 04/15/2013 05:17 pm Christos Stavrakakis

Make 'api_method' to take astakos_url as argument

4ab620b6 04/15/2013 04:11 pm Christos Stavrakakis

Improve settings related to ASTAKOS url

Rename 'PITHOS_AUTHENTICATION_URL' setting to 'ASTAKOS_URL'. Also remove
'PITHOS_AUTHENTICATION_USERS' from docs (it was removed from code in
commit 8df4fae).

Modify 'ASTAKOS_URL' to point to the node hosting the Astakos service...

93c6900c 04/10/2013 12:18 pm Ilias Tsitsimpis

snf-django-lib: PEP-8 style fixes

6c1c0738 04/10/2013 12:05 pm Ilias Tsitsimpis

snf-django-lib: ReRaise AstakosClientExceptions as API Faults

fde7b7cb 04/10/2013 12:00 pm Ilias Tsitsimpis

snf-django-lib: Fault Exceptions now have code attr

420c24ee 04/09/2013 05:31 pm Ilias Tsitsimpis

PEP8 styling fixes in faults.py

04a1b675 04/08/2013 06:17 pm Christos Stavrakakis

Move astakos lib from snf-common to snf-django-lib

896754a6 04/08/2013 11:07 am Christos Stavrakakis

Move parsedate module to snf_django

d2b8ec7b 04/08/2013 11:07 am Christos Stavrakakis

Move common test code to snf_django.lib.testing

a712571b 04/08/2013 11:06 am Christos Stavrakakis

Create 'snf-django-lib'

Create 'snf-django-lib', common Synnefo library for django.

bd40abfa 04/08/2013 11:06 am Christos Stavrakakis

Move cloud faults to 'snf_django.lib.api.faults'

Gather all faults from all synnefo projects into common
'snf_django.lib.api.faults'.

72bf812d 04/08/2013 11:06 am Christos Stavrakakis

Implement single decorator for handling API calls

Create a single decorator for API methods to be used be accross all
synnefo. This decorator does the following:

  • Proper logging of 5xx faults and unexpected errors
  • Authentication with Astakos using snf-astakos-client...