Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
kamaki
Commits
ee041529
Commit
ee041529
authored
Jan 28, 2014
by
Stavros Sachtouris
Browse files
Prettier example code in clients-api
parent
52b2b3bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/developers/clients-api.rst
View file @
ee041529
...
...
@@ -307,7 +307,7 @@ Register a banch of pre-uploaded images
IMAGE_CONTAINER = 'images'
astakos = AstakosClient(AUTHENTICATION_URL, TOKEN)
USER_UUID = astakos.user_info['
uu
id']
USER_UUID = astakos.user_info['id']
PITHOS_URL = astakos.get_service_endpoints('object-store')['publicURL']
pithos = PithosClient(PITHOS_URL, TOKEN, USER_UUID, IMAGE_CONTAINER)
...
...
@@ -325,12 +325,11 @@ Register a banch of pre-uploaded images
except ClientError:
print 'Failed to register image %s' % IMAGE_PATH
..note::
..
note::
In plankton.register, the `location` argument can be either a triplet, as
shown above, or a qualified URL of the form
pithos://USER_UUID/IMAGE_CONTAINER/IMAGE_PATH
which is the format used by the image API.
In `plankton.register`, the `location` argument can be either `a triplet`,
as shown above, or `a qualified URL` of the form
``pithos://USER_UUID/IMAGE_CONTAINER/IMAGE_PATH``.
Two servers and a private network
'''''''''''''''''''''''''''''''''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment