Revision 33487500 kamaki/clients/pithos.py
b/kamaki/clients/pithos.py | ||
---|---|---|
1067 | 1067 |
|
1068 | 1068 |
def copy_object( |
1069 | 1069 |
self, src_container, src_object, dst_container, |
1070 |
dst_object=False,
|
|
1070 |
dst_object=None,
|
|
1071 | 1071 |
source_version=None, |
1072 | 1072 |
source_account=None, |
1073 | 1073 |
public=False, |
... | ... | |
1094 | 1094 |
""" |
1095 | 1095 |
self._assert_account() |
1096 | 1096 |
self.container = dst_container |
1097 |
dst_object = dst_object or src_object |
|
1098 | 1097 |
src_path = path4url(src_container, src_object) |
1099 | 1098 |
r = self.object_put( |
1100 |
dst_object, |
|
1099 |
dst_object or src_object,
|
|
1101 | 1100 |
success=201, |
1102 | 1101 |
copy_from=src_path, |
1103 | 1102 |
content_length=0, |
Also available in: Unified diff