Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / plankton / utils.py @ 91430ce0

History | View | Annotate | Download (2.1 kB)

# Date Author Comment
9393d4ee 07/02/2013 03:24 pm Kostas Papadimitriou

plankton: Modular plankton backend class

Enable configurable plankton backend using setting ``PLANKTON_BACKEND_MODULE``.

Add ``synnefo.plankton.backend.JSONFileBackend`` which uses a json file as
the store of returned images. The backend should only be used in development...

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...
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.

65bbcd43 04/08/2013 11:06 am Christos Stavrakakis

Use common 'api_method' decorator in pithos api

Update all pithos API methods to use the new common 'api_method'
decorator. However, this decorator is not enough for pithos since
pithos methods require some extra tasks:
  • Create a PithosBackend connection...