Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / plankton / views.py @ e6fbada1

History | View | Annotate | Download (12.2 kB)

# Date Author Comment
b694875c 10/01/2013 06:56 pm Christos Stavrakakis

wheezy: Rename depricated HttpRequest attribute

From django docs:
"""
HttpRequest.raw_post_data renamed to HttpRequest.body

This attribute was confusingly named HttpRequest.raw_post_data, but it
actually provided the body of the HTTP request. It’s been renamed to...

cda71050 04/22/2013 10:10 am Christos Stavrakakis

plankton: Cleanup and improve code

Major refactor in plankton APP and ImageBackend code:
  • Remove unused code
  • Remove 'plankton_method' decorator that added an ImageBackend to
    requests an replace it with 'image_backend' context manager. This
    context manager is responsible for opening and closing connections...
14c94c48 04/22/2013 10:10 am Christos Stavrakakis

Improve performance in listing images

Use '_get_domain_objects' function of Pithos backend, to list all
objects in a 'plankton' domain, instead of looping over all accessible
accounts, containers and objects. This function also returns metadata
and permissions for each object in order to avoid two extra calls for...

59573532 04/22/2013 10:10 am Christos Stavrakakis

plankton: raise BadRequest for invalid location

Modify 'add_image' plankton API method, to check that location parameter
is a valid Pithos url, and raise BadRequest if not.

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

Move common test code to snf_django.lib.testing

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

Use the common 'api_method' decorator in plankton

Use the common 'api_method' decorator in all plankton API methods.
Modify the 'plankton_method' decorator to only create and close
the ImageBackend.

f13aab5d 04/02/2013 01:49 pm Christos Stavrakakis

Delete Image without deleting file from Pithos

Until now, deleting an image resulted in deletion of the corresponding
file from Pithos. Plankton Images are files in Pithos with special
metadata on the 'plankton' metadata domain. Adding an Image to plankton...

cc92b70f 02/06/2013 02:18 pm Christos Stavrakakis

Fix pep8 warnings

c3bcaeff 01/22/2013 01:43 pm Stratos Psomadakis

plankton: Handle correctly request filters

Make sure that when listing public images plankton verifies that
size_max and size_min req filters are integers, and return a Bad
Request response otherwise.

b2f94a0c 11/26/2012 02:20 pm Christos Stavrakakis

Make Plankton API return all available images

Modify Plankton API, such that GET to /images/ retrieves a list of
available images that the authenticated user has access to. This
includes images owned by the user, images shared with the user and
public images.

29490fca 11/22/2012 01:26 pm Christos Stavrakakis

Fix white space

aed77afe 11/22/2012 01:26 pm Christos Stavrakakis

Extend Plankton API with shared-images

Extend Plankton API, to support listing all non-public images that
are available to the user. This can be done by issuing a GET to
shared-images/ and shared-images/detail.

2035039b 02/24/2012 05:49 pm Giorgos Verigakis

Switch to the logging middleware

4ec83e68 02/04/2012 08:57 pm Giorgos Verigakis

Unquote header names and values

9c0ac5af 01/30/2012 06:55 pm Kostas Papadimitriou

Renamed snf-app to snf-cyclades-app