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
96ec49f2
Commit
96ec49f2
authored
Jan 09, 2013
by
Stavros Sachtouris
Browse files
Enricch store_append helps, fix docs/donf dep.
parent
795bf206
Changes
2
Hide whitespace changes
Inline
Side-by-side
docs/conf.py
View file @
96ec49f2
...
...
@@ -19,7 +19,6 @@
from
sys
import
path
,
stderr
import
os
path
.
append
(
'/home/saxtouri/src/objpool'
)
try
:
from
objpool
import
http
http
...
...
kamaki/cli/commands/pithos_cli.py
View file @
96ec49f2
...
...
@@ -635,12 +635,21 @@ class store_append(_store_container_command):
upload_cb
=
progress_bar
.
get_generator
(
'Appending blocks'
)
except
Exception
:
upload_cb
=
None
self
.
client
.
append_object
(
object
=
self
.
path
,
source_file
=
f
,
upload_cb
=
upload_cb
)
self
.
client
.
append_object
(
self
.
path
,
f
,
upload_cb
)
except
ClientError
as
err
:
progress_bar
.
finish
()
if
err
.
status
==
404
:
if
'container'
in
(
'%s'
%
err
).
lower
():
raiseCLIError
(
err
,
'No container %s in account %s'
\
%
(
self
.
container
,
self
.
account
),
details
=
self
.
generic_err_details
)
raise_connection_errors
(
err
)
raiseCLIError
(
err
)
except
Exception
as
e
:
progress_bar
.
finish
()
raiseCLIError
(
e
)
finally
:
progress_bar
.
finish
()
...
...
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