Get endpoint urls for all CLI operations
authorStavros Sachtouris <saxtouri@admin.grnet.gr>
Fri, 31 May 2013 14:37:37 +0000 (17:37 +0300)
committerStavros Sachtouris <saxtouri@admin.grnet.gr>
Fri, 31 May 2013 14:37:37 +0000 (17:37 +0300)
commitf724cd3526fdcc2aba7df02474933eacad63895b
tree7034b2a992e57aa1136008690920c513d84c1bcf
parent05e144e2418121079f9ade6554995c56c82724a4
Get endpoint urls for all CLI operations

Refs: #3874

Use kamaki.clients.astakos.AstakosClient as a cached astakos client to get
user information and, most importantly, endpoints. Allow users to authenticate
multiple tokens on the same session. In every session there must be at most
one authentication per user/token.

Major change: top kamaki.cli.commands class now contains a base_auth field
with the cached authenticating client. All urls are drained from this field.
15 files changed:
kamaki/cli/__init__.py
kamaki/cli/argument.py
kamaki/cli/command_shell.py
kamaki/cli/commands/__init__.py
kamaki/cli/commands/astakos.py
kamaki/cli/commands/config.py
kamaki/cli/commands/cyclades.py
kamaki/cli/commands/errors.py
kamaki/cli/commands/history.py
kamaki/cli/commands/image.py
kamaki/cli/commands/pithos.py
kamaki/cli/commands/snf-astakos.py
kamaki/cli/config.py
kamaki/cli/one_command.py
kamaki/clients/astakos/__init__.py