Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-client / astakosclient / __init__.py @ f6ff4b40

History | View | Annotate | Download (11.4 kB)

# Date Author Comment
6837f014 04/04/2013 04:26 pm Ilias Tsitsimpis

astakosclient: Use objpool version 0.2

794c94e6 03/22/2013 01:29 pm Ilias Tsitsimpis

astakosclient: Rename functions/methods

Rename functions/methods according to PEP-8 naming conventions.

f74d2b69 03/22/2013 11:27 am Ilias Tsitsimpis

Rename AstakosClient's authenticate method to getUserInfo

2377e7c2 03/20/2013 12:58 pm Ilias Tsitsimpis

Add 2 new exceptions to AstakosClient

  • NoDisplayName
    raised if getDisplayName called with non-existing uuid
  • NoUUID
    raised if getUUID called with non-existing display_name
be284f6a 03/12/2013 03:54 pm Christos Stavrakakis

Turn multiple if statements to if-elif statement

d7e1e346 03/12/2013 03:54 pm Ilias Tsitsimpis

Better handling of log messages

Never, ever log tokens

4490d7b5 03/12/2013 03:54 pm Ilias Tsitsimpis

Create AstakosClient Class

949baf4d 03/12/2013 03:54 pm Ilias Tsitsimpis

Add retry option to AstakosClient

bc5032a4 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement getTokenFromCookie function

98752f06 03/12/2013 03:54 pm Ilias Tsitsimpis

Move token argument

Remove token argument from class initialization
method and make it a mandatory argument to all
the other class methods.

e169a337 03/12/2013 03:54 pm Ilias Tsitsimpis

Rename conn variable to conn_class

8f2d7ede 03/12/2013 03:54 pm Ilias Tsitsimpis

Better handling of default parameter values

7eb32034 03/12/2013 03:54 pm Ilias Tsitsimpis

Better format for logging messages

aaf0a42c 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement getUUIDs/getUUID methods

3f8d6b11 03/12/2013 03:54 pm Ilias Tsitsimpis

Add getServices method

1c26b500 03/12/2013 03:54 pm Ilias Tsitsimpis

Query Astakos `/service/api/user_catalogs'

6f64b6d0 03/12/2013 03:54 pm Ilias Tsitsimpis

More log messages in AstakosClient

Log retries.
Log hashed tokens.

8fe6475a 03/12/2013 03:54 pm Ilias Tsitsimpis

Create more Exception Classes for AstakosClient

  • AstakosClientEInvalid:
    Invalid X-Auth-Token, 401
  • AstakosClientEMethod:
    Method not allowed, 400
  • AstakosClientENotFound:
    Not Found, 404
996061fa 03/12/2013 03:54 pm Ilias Tsitsimpis

Add options to AstakosClient for objpool pool_size

Refs: #3419

f93cc364 03/12/2013 03:54 pm Ilias Tsitsimpis

Create utils and errors modules for astakosclient

  • Move retry decorator to utils module.
  • Rename exceptions to be more intuitive.
  • Add 403 Forbidden exception.
  • Move exceptions to errors class
cbc0b438 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement low-level _callAstakos function

This function will handle all requests to Astakos.
On top of this we should build high level wrapper
functions to handle more specific calls/requests
to Astakos. _callAstakos function should log
every single action.

f8388a90 03/12/2013 03:54 pm Ilias Tsitsimpis

Separate actual _doRequest from _callAstakos

Creating a new function `_doRequest' to handle
the actual requests to astakos service makes
it easy to mock it later for unit testing
our module.

b2a2fe7a 03/12/2013 03:54 pm Ilias Tsitsimpis

Add more unit tests for _callAstakos function

52c4fcef 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement a simple `retry' decorator

f54cf5e4 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement `authenticate' function

354517d8 03/12/2013 03:54 pm Ilias Tsitsimpis

Implement getDisplayNames function

99165736 02/25/2013 03:42 pm Christos Stavrakakis

Initialize snf-astakos-client