Statistics
| Branch: | Tag: | Revision:

root / snf-astakos-client / astakosclient / __init__.py @ 8fe6475a

History | View | Annotate | Download (12.7 kB)

# Date Author Comment
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
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