kamaki
10 years agoFix details that ruin internal unicode objects
Stavros Sachtouris [Wed, 5 Mar 2014 14:39:37 +0000 (16:39 +0200)]
Fix details that ruin internal unicode objects

Refs: #5150, #5180

Specifics:
    - the image path is conctructed with a + operator, use the '%s'
notation instead
    - Do not quote everything on the URL, because it destroyes
? and & characters. Encode and quote only what needs to be

10 years agoAdd X-Image- to expected http header prefices
Stavros Sachtouris [Tue, 4 Mar 2014 17:41:41 +0000 (19:41 +0200)]
Add X-Image- to expected http header prefices

Refs: #5180

10 years agoFix one-command/shell differences in http encoding
Stavros Sachtouris [Tue, 4 Mar 2014 17:31:51 +0000 (19:31 +0200)]
Fix one-command/shell differences in http encoding

Refs: #5150

10 years agoAdd lists of expected headers in Pithos client
Stavros Sachtouris [Tue, 4 Mar 2014 16:56:01 +0000 (18:56 +0200)]
Add lists of expected headers in Pithos client

Refs: #5180

10 years agoAllow Client objects to set headers for encoding
Stavros Sachtouris [Tue, 4 Mar 2014 16:11:59 +0000 (18:11 +0200)]
Allow Client objects to set headers for encoding

Refs: #5180

10 years agoRestrict http response header encoding
Stavros Sachtouris [Tue, 4 Mar 2014 16:00:37 +0000 (18:00 +0200)]
Restrict http response header encoding

Refs: #5180

In ResponseManager, do not encode all headers to unicode.
Encode ONLY the headers mentioned by the caller method.

A caller method can use the headers_to_decode and header_prefices
property-getter/setter methods to set a list of header keys and
a list of header key prefices for encoding. All keys are case
insensitive.

10 years agoFix typo in output stream assignment
Stavros Sachtouris [Tue, 4 Mar 2014 14:28:08 +0000 (16:28 +0200)]
Fix typo in output stream assignment

Refs: #5150

10 years agoQuote URL for request exactly after parsing it
Stavros Sachtouris [Tue, 4 Mar 2014 14:18:47 +0000 (16:18 +0200)]
Quote URL for request exactly after parsing it

Refs: #5150

10 years agoCorrect console in/output en/decoding handling
Stavros Sachtouris [Tue, 4 Mar 2014 13:24:28 +0000 (15:24 +0200)]
Correct console in/output en/decoding handling

Refs: #5150

10 years agoRemove "Check if service is up" for 403
Stavros Sachtouris [Fri, 28 Feb 2014 15:12:55 +0000 (17:12 +0200)]
Remove "Check if service is up" for 403

10 years agoFix progressbar for short appends and overwrites
Stavros Sachtouris [Fri, 28 Feb 2014 10:09:33 +0000 (12:09 +0200)]
Fix progressbar for short appends and overwrites

Refs: #5160

10 years agoLog quoted headers before sending them
Stavros Sachtouris [Thu, 27 Feb 2014 15:30:50 +0000 (17:30 +0200)]
Log quoted headers before sending them

10 years agoInput uses preferred encoding
Stavros Sachtouris [Thu, 27 Feb 2014 15:29:39 +0000 (17:29 +0200)]
Input uses preferred encoding

10 years agoAdd warning in encoding failure
Stavros Sachtouris [Thu, 27 Feb 2014 13:16:04 +0000 (15:16 +0200)]
Add warning in encoding failure

10 years agoRemove redudant flush, optimize for utf output
Stavros Sachtouris [Thu, 27 Feb 2014 13:11:43 +0000 (15:11 +0200)]
Remove redudant flush, optimize for utf output

10 years agoRemove redudant en/de-coding from CLI outputs
Stavros Sachtouris [Thu, 27 Feb 2014 11:06:02 +0000 (13:06 +0200)]
Remove redudant en/de-coding from CLI outputs

Refs: #5150

10 years agoEncode list/item prints in user-defined encoding
Stavros Sachtouris [Wed, 26 Feb 2014 16:34:40 +0000 (18:34 +0200)]
Encode list/item prints in user-defined encoding

Refs: #5150

10 years agoMerge branch 'feature-unicode-http' into develop
Stavros Sachtouris [Wed, 26 Feb 2014 15:34:18 +0000 (17:34 +0200)]
Merge branch 'feature-unicode-http' into develop

10 years agoFix copyright (recent file changes)
Stavros Sachtouris [Wed, 26 Feb 2014 15:10:58 +0000 (17:10 +0200)]
Fix copyright (recent file changes)

10 years agoDo not record config set commands in history
Stavros Sachtouris [Wed, 26 Feb 2014 14:31:23 +0000 (16:31 +0200)]
Do not record config set commands in history

Refs: #4479

10 years agoAdd source version in file overwrite
Stavros Sachtouris [Wed, 26 Feb 2014 14:11:25 +0000 (16:11 +0200)]
Add source version in file overwrite

10 years agoDecode headers to utf-8, print in user-chosen enc.
Stavros Sachtouris [Wed, 26 Feb 2014 11:30:31 +0000 (13:30 +0200)]
Decode headers to utf-8, print in user-chosen enc.

Refs: #5150

10 years agoImplement _encode_nicely method to supress errors
Stavros Sachtouris [Tue, 25 Feb 2014 16:47:27 +0000 (18:47 +0200)]
Implement _encode_nicely method to supress errors

Refs: #5150

Loop over a string and attempt to encode it in a given encoding
If a char fails, replace it with a replacement character

10 years agoUpdate documentation for windows installation
Stavros Sachtouris [Tue, 25 Feb 2014 15:20:18 +0000 (17:20 +0200)]
Update documentation for windows installation

10 years agoApply UTF-8 encoding while in/output with console
Stavros Sachtouris [Mon, 24 Feb 2014 16:13:09 +0000 (18:13 +0200)]
Apply UTF-8 encoding while in/output with console

Refs: #5150

10 years agoURL-encode http headers
Stavros Sachtouris [Mon, 24 Feb 2014 14:10:48 +0000 (16:10 +0200)]
URL-encode http headers

Refs: #5150

10 years agoSuppress logs of best-match failures
Stavros Sachtouris [Mon, 24 Feb 2014 13:18:15 +0000 (15:18 +0200)]
Suppress logs of best-match failures

10 years agoMerge branch 'feature-history-limit' into develop
Stavros Sachtouris [Mon, 24 Feb 2014 11:24:27 +0000 (13:24 +0200)]
Merge branch 'feature-history-limit' into develop

10 years agoUpdate Changelog for history changes
Stavros Sachtouris [Mon, 24 Feb 2014 11:24:09 +0000 (13:24 +0200)]
Update Changelog for history changes

10 years agoUpdate documentation for history
Stavros Sachtouris [Mon, 24 Feb 2014 11:23:00 +0000 (13:23 +0200)]
Update documentation for history

10 years agoOnly two cmds in history, use history_limit
Stavros Sachtouris [Mon, 24 Feb 2014 11:16:33 +0000 (13:16 +0200)]
Only two cmds in history, use history_limit

Refs: #4479

10 years agoAdd a limit in number of history lines
Stavros Sachtouris [Fri, 21 Feb 2014 13:42:44 +0000 (15:42 +0200)]
Add a limit in number of history lines

Refs: #4479

10 years agoRemove history run
Stavros Sachtouris [Thu, 20 Feb 2014 15:35:33 +0000 (17:35 +0200)]
Remove history run

Refs: #4479

10 years agoUse slice notation in history show
Stavros Sachtouris [Thu, 20 Feb 2014 15:13:40 +0000 (17:13 +0200)]
Use slice notation in history show

Refs: #4479

10 years agoSimplify history _match and get
Stavros Sachtouris [Thu, 20 Feb 2014 13:48:19 +0000 (15:48 +0200)]
Simplify history _match and get

Refs: #4479

10 years agoRename method in kamaki.cli.history
Stavros Sachtouris [Thu, 20 Feb 2014 12:34:21 +0000 (14:34 +0200)]
Rename method in kamaki.cli.history

Refs: #4479

retrieve --> __getitem__
clean --> empty

10 years agoMerge branch 'feature-floatingip-without-network' into develop
Stavros Sachtouris [Thu, 20 Feb 2014 09:37:07 +0000 (11:37 +0200)]
Merge branch 'feature-floatingip-without-network' into develop

10 years agoAllow ip allocation without specifing net id
Stavros Sachtouris [Thu, 20 Feb 2014 09:36:20 +0000 (11:36 +0200)]
Allow ip allocation without specifing net id

Refs: #5104

10 years agoFix HTTP headers in image member add
Stavros Sachtouris [Wed, 19 Feb 2014 12:49:55 +0000 (14:49 +0200)]
Fix HTTP headers in image member add

Refs: #5115

10 years agoFix typo
Stavros Sachtouris [Mon, 17 Feb 2014 13:25:49 +0000 (15:25 +0200)]
Fix typo

10 years agoMerge branch 'feature-semantic-clean-up' into develop
Stavros Sachtouris [Mon, 17 Feb 2014 13:11:25 +0000 (15:11 +0200)]
Merge branch 'feature-semantic-clean-up' into develop

10 years agoUndo server restructs, keep the big fixes
Stavros Sachtouris [Mon, 17 Feb 2014 13:10:42 +0000 (15:10 +0200)]
Undo server restructs, keep the big fixes

10 years agoRemove obsolete arguyments from server_info
Stavros Sachtouris [Wed, 12 Feb 2014 09:43:16 +0000 (11:43 +0200)]
Remove obsolete arguyments from server_info

Refs: #5051

10 years agoFix typo in set firewall profile
Stavros Sachtouris [Tue, 11 Feb 2014 16:24:53 +0000 (18:24 +0200)]
Fix typo in set firewall profile

10 years agoPretty server info, better errors in set firewall
Stavros Sachtouris [Tue, 11 Feb 2014 16:08:34 +0000 (18:08 +0200)]
Pretty server info, better errors in set firewall

Refs: #5051

10 years agoFix type in server modify argument help
Stavros Sachtouris [Mon, 10 Feb 2014 08:49:14 +0000 (10:49 +0200)]
Fix type in server modify argument help

10 years agoMerge branch 'feature-update-docs' into develop
Stavros Sachtouris [Fri, 7 Feb 2014 16:48:57 +0000 (18:48 +0200)]
Merge branch 'feature-update-docs' into develop

10 years agoEnrich documentation with network-related examples
Stavros Sachtouris [Fri, 7 Feb 2014 16:44:36 +0000 (18:44 +0200)]
Enrich documentation with network-related examples

Refs: #5031

10 years agoUpdate network commands in documentaion
Stavros Sachtouris [Thu, 6 Feb 2014 15:36:14 +0000 (17:36 +0200)]
Update network commands in documentaion

Refs: #5031

10 years agoMerge branch 'develop' into feature-update-docs
Stavros Sachtouris [Thu, 6 Feb 2014 13:38:44 +0000 (15:38 +0200)]
Merge branch 'develop' into feature-update-docs

10 years agoRemove deprecated methods
Stavros Sachtouris [Thu, 6 Feb 2014 13:38:02 +0000 (15:38 +0200)]
Remove deprecated methods

10 years agoMerge branch 'feature-account-name' into develop
Stavros Sachtouris [Wed, 5 Feb 2014 13:24:41 +0000 (15:24 +0200)]
Merge branch 'feature-account-name' into develop

10 years agoUpdate changelog
Stavros Sachtouris [Wed, 5 Feb 2014 13:24:25 +0000 (15:24 +0200)]
Update changelog

10 years agoRecognise usernames in --account args (or similar)
Stavros Sachtouris [Wed, 5 Feb 2014 13:16:05 +0000 (15:16 +0200)]
Recognise usernames in --account args (or similar)

Refs: #4810

Arguments --account and --to-account can now accept usernames along with uuids
Kamaki attempts to recognise the argument as a uuid. In case of failure, it
attempts to recognise it as a username. If it fails again, it produces and
error.

Also, restore kamaki file publish/unpublish

10 years agoMerge branch 'feature-update-docs' into develop
Stavros Sachtouris [Tue, 4 Feb 2014 13:49:32 +0000 (15:49 +0200)]
Merge branch 'feature-update-docs' into develop

10 years agoUpdate showcase, make all scripts work
Stavros Sachtouris [Tue, 4 Feb 2014 13:49:08 +0000 (15:49 +0200)]
Update showcase, make all scripts work

10 years agoMerge branch 'feature-clients-docs' into develop
Stavros Sachtouris [Fri, 31 Jan 2014 16:10:56 +0000 (18:10 +0200)]
Merge branch 'feature-clients-docs' into develop

10 years agoUpdate developer-oriented documentation
Stavros Sachtouris [Fri, 31 Jan 2014 15:21:31 +0000 (17:21 +0200)]
Update developer-oriented documentation

10 years agoRemove livetest references from docs
Stavros Sachtouris [Fri, 31 Jan 2014 12:59:47 +0000 (14:59 +0200)]
Remove livetest references from docs

Refs: #4873

10 years agoMerge branch 'feature-remove-livetests' into develop
Stavros Sachtouris [Fri, 31 Jan 2014 12:41:27 +0000 (14:41 +0200)]
Merge branch 'feature-remove-livetests' into develop

10 years agoRemove livetest from kamaki
Stavros Sachtouris [Fri, 31 Jan 2014 12:40:16 +0000 (14:40 +0200)]
Remove livetest from kamaki

Refs: #4873

10 years agoMerge branch 'feature-argument-abbreviations' into develop
Stavros Sachtouris [Thu, 30 Jan 2014 15:58:14 +0000 (17:58 +0200)]
Merge branch 'feature-argument-abbreviations' into develop

10 years agoDisable argument abbreviation
Stavros Sachtouris [Thu, 30 Jan 2014 15:56:06 +0000 (17:56 +0200)]
Disable argument abbreviation

Refs: #4865

Implementaton details: subclass ArgumentParser and override the
_get_option_tuples method. Replace option_string comparison
operator: == instead of .startswith
The rest of the method code is copy-pasted from python 2.7.3 argparse

10 years agoUpdate adding-commands documentation
Stavros Sachtouris [Thu, 30 Jan 2014 15:05:55 +0000 (17:05 +0200)]
Update adding-commands documentation

10 years agoFix problems with unicode HTTP headers
Stavros Sachtouris [Wed, 29 Jan 2014 16:16:29 +0000 (18:16 +0200)]
Fix problems with unicode HTTP headers

10 years agoPrettier example code in clients-api
Stavros Sachtouris [Tue, 28 Jan 2014 15:55:48 +0000 (17:55 +0200)]
Prettier example code in clients-api

10 years agoUpdate clients-api docs to reflect recent changes
Stavros Sachtouris [Tue, 28 Jan 2014 15:51:17 +0000 (17:51 +0200)]
Update clients-api docs to reflect recent changes

10 years agoMerge branch 'feature-clients-docs' into develop
Stavros Sachtouris [Tue, 28 Jan 2014 15:29:05 +0000 (17:29 +0200)]
Merge branch 'feature-clients-docs' into develop

10 years agoUpdate Changelog for astakos error class merge
Stavros Sachtouris [Tue, 28 Jan 2014 15:28:20 +0000 (17:28 +0200)]
Update Changelog for astakos error class merge

10 years agoApply uniformity in kamaki.clients.astakos errors
Stavros Sachtouris [Tue, 28 Jan 2014 15:26:17 +0000 (17:26 +0200)]
Apply uniformity in kamaki.clients.astakos errors

Refs: #5002

All errors are now AstakosClientError errors

10 years agoMerge astakos error classes --> AstakosClientError
Stavros Sachtouris [Tue, 28 Jan 2014 15:20:08 +0000 (17:20 +0200)]
Merge astakos error classes --> AstakosClientError

Refs: #5002

Also, decorate kamaki.clients.astakos.AstakosClient to raise this new class
when an error occurs

10 years agoMerge branch 'feature-container-access-bug' into develop
Stavros Sachtouris [Tue, 28 Jan 2014 12:00:31 +0000 (14:00 +0200)]
Merge branch 'feature-container-access-bug' into develop

10 years agoUpdate changelog for immutable containers in file*
Stavros Sachtouris [Tue, 28 Jan 2014 11:59:28 +0000 (13:59 +0200)]
Update changelog for immutable containers in file*

10 years agoDo not let file-* cmds to create containers
Stavros Sachtouris [Tue, 28 Jan 2014 11:58:39 +0000 (13:58 +0200)]
Do not let file-* cmds to create containers

Refs: #4992

10 years agoMerge branch 'feature-image' into develop
Stavros Sachtouris [Tue, 28 Jan 2014 10:39:22 +0000 (12:39 +0200)]
Merge branch 'feature-image' into develop

10 years agoUpdate Changelog for image register auto-path
Stavros Sachtouris [Tue, 28 Jan 2014 10:39:05 +0000 (12:39 +0200)]
Update Changelog for image register auto-path

10 years agoAllow image register from local file to container
Stavros Sachtouris [Tue, 28 Jan 2014 10:36:15 +0000 (12:36 +0200)]
Allow image register from local file to container

Refs: #4991

Image register can now accept these options as correct:
--location [pithos://UUID]/CONTAINER --upload-local-file LOCAL_PATH
which is equivalent to this:
--location [pithos://UUID]/CONTAINER/basename(LOCAL_PATH) --upload-local-file LOCAL_PATH

10 years agoMerge branch 'feature-image' into develop
Stavros Sachtouris [Mon, 27 Jan 2014 16:22:57 +0000 (18:22 +0200)]
Merge branch 'feature-image' into develop

10 years agoRename --(un)publish to --public/--private
Stavros Sachtouris [Mon, 27 Jan 2014 16:15:32 +0000 (18:15 +0200)]
Rename --(un)publish to --public/--private

Refs: 4990

10 years agoUpdate Changelog for image meta permissions
Stavros Sachtouris [Mon, 27 Jan 2014 15:59:40 +0000 (17:59 +0200)]
Update Changelog for image meta permissions

10 years agoIn image register, meta gets same sharing as image
Stavros Sachtouris [Mon, 27 Jan 2014 15:58:25 +0000 (17:58 +0200)]
In image register, meta gets same sharing as image

Refs: #4960

10 years agoUpdate Changelog with file list bugfix
Stavros Sachtouris [Mon, 27 Jan 2014 13:03:14 +0000 (15:03 +0200)]
Update Changelog with file list bugfix

10 years agoAlways recognise a directory in pithos
Stavros Sachtouris [Mon, 27 Jan 2014 13:02:30 +0000 (15:02 +0200)]
Always recognise a directory in pithos

Refs: #4987

10 years agoUpdate Changelog for URL-encode bug
Stavros Sachtouris [Mon, 27 Jan 2014 11:08:02 +0000 (13:08 +0200)]
Update Changelog for URL-encode bug

10 years agoAll URL-space params are now URL-encoded
Stavros Sachtouris [Mon, 27 Jan 2014 11:07:22 +0000 (13:07 +0200)]
All URL-space params are now URL-encoded

Refs: #4986

10 years agoFi network_create in documentation
Stavros Sachtouris [Fri, 24 Jan 2014 15:09:32 +0000 (17:09 +0200)]
Fi network_create in documentation

10 years agoFix typos in documentation
Stavros Sachtouris [Fri, 24 Jan 2014 14:58:02 +0000 (16:58 +0200)]
Fix typos in documentation

10 years agoTypo in documentation
Stavros Sachtouris [Fri, 24 Jan 2014 14:46:45 +0000 (16:46 +0200)]
Typo in documentation

10 years agoUpdate documentation to reflect changes in network
Stavros Sachtouris [Fri, 24 Jan 2014 14:41:29 +0000 (16:41 +0200)]
Update documentation to reflect changes in network

10 years agoRemove conte-type from object_overwrite call
Stavros Sachtouris [Fri, 24 Jan 2014 11:04:47 +0000 (13:04 +0200)]
Remove conte-type from object_overwrite call

10 years agoDocument content-type in object_overwrite
Stavros Sachtouris [Fri, 24 Jan 2014 10:37:19 +0000 (12:37 +0200)]
Document content-type in object_overwrite

10 years agoKeep objects content type by default
Stavros Sachtouris [Thu, 23 Jan 2014 16:44:53 +0000 (18:44 +0200)]
Keep objects content type by default

10 years agoAllow content-type in file overwrite
Stavros Sachtouris [Thu, 23 Jan 2014 09:56:29 +0000 (11:56 +0200)]
Allow content-type in file overwrite

10 years agoAllow empty server names in modify
Stavros Sachtouris [Wed, 22 Jan 2014 13:09:47 +0000 (15:09 +0200)]
Allow empty server names in modify

10 years agoFix typo in documentation
Stavros Sachtouris [Tue, 21 Jan 2014 09:08:53 +0000 (11:08 +0200)]
Fix typo in documentation

10 years agoUpdate Changelog for minor typo fixes
Stavros Sachtouris [Mon, 20 Jan 2014 16:11:44 +0000 (18:11 +0200)]
Update Changelog for minor typo fixes

10 years agoRemove "None" from end of file cat responses
Stavros Sachtouris [Mon, 20 Jan 2014 13:59:59 +0000 (15:59 +0200)]
Remove "None" from end of file cat responses

10 years agoUpdate help messag in image commands
Stavros Sachtouris [Mon, 20 Jan 2014 13:31:05 +0000 (15:31 +0200)]
Update help messag in image commands

10 years agoBugfix: container delete for numerical containers
Stavros Sachtouris [Fri, 17 Jan 2014 13:51:57 +0000 (15:51 +0200)]
Bugfix: container delete for numerical containers

10 years agoFix typo in membership_enroll
Stavros Sachtouris [Fri, 17 Jan 2014 11:01:45 +0000 (13:01 +0200)]
Fix typo in membership_enroll