Stavros Sachtouris [Sat, 22 Dec 2012 18:01:02 +0000 (20:01 +0200)]
Modify __getitem__ semantics
Not __getitem__ of cli.commands does return arg.value
- to set:
mycmd['argname'] = Argument(…)
or
mycmd.argument['argname'] = Argument(…)
- to get Argument object:
mycmd.get_argument_object('argname')
or
mycmd.argument['argname']
- to get Argument value:
mycmd['argname']
or
mycmd['argname'].get_argument('argname') //bw comp.
Stavros Sachtouris [Sat, 22 Dec 2012 17:38:43 +0000 (19:38 +0200)]
Make arguments an internal feature of cli.commands
Now any cli.commands subclass instance:
- sets args like this:
mycmd['myargname'] = Argument()
instead of
mycmd.arguments['myargname']
- gets args like this:
mycmd['myargname'] = Argument()
instead of
mycmd.arguments['myargname']
-get argument values like this:
mycmd['myargname'].value
instead of
mycmd.get_argument('myargname')
Backwards compatibility is preserved -old methds still ok
Stavros Sachtouris [Fri, 21 Dec 2012 10:39:52 +0000 (12:39 +0200)]
Add the Changelog for 0.6.2
Stavros Sachtouris [Thu, 20 Dec 2012 16:22:50 +0000 (18:22 +0200)]
Merge branch 'develop'
Conflicts:
docs/setup.rst
Stavros Sachtouris [Thu, 20 Dec 2012 16:13:27 +0000 (18:13 +0200)]
Documentation uniformity
Stavros Sachtouris [Thu, 20 Dec 2012 16:12:35 +0000 (18:12 +0200)]
Make setup easier
Stavros Sachtouris [Thu, 20 Dec 2012 15:52:42 +0000 (17:52 +0200)]
Improve help for history run
Stavros Sachtouris [Thu, 20 Dec 2012 15:20:05 +0000 (17:20 +0200)]
Nice instructions for astakos_cli
Stavros Sachtouris [Thu, 20 Dec 2012 15:06:14 +0000 (17:06 +0200)]
Formated output in long command description
Stavros Sachtouris [Thu, 20 Dec 2012 12:51:26 +0000 (14:51 +0200)]
Fix network disconnect detail show
Stavros Sachtouris [Thu, 20 Dec 2012 12:24:57 +0000 (14:24 +0200)]
Correct publish output, more details in storelist
Stavros Sachtouris [Thu, 20 Dec 2012 11:45:02 +0000 (13:45 +0200)]
Merge branch 'develop' into feature-output
Stavros Sachtouris [Thu, 20 Dec 2012 11:14:31 +0000 (13:14 +0200)]
Improve print_items, use it in flavor_list
flavor_list now prints id name instead of order. name
Stavros Sachtouris [Wed, 19 Dec 2012 16:38:35 +0000 (18:38 +0200)]
In shell, ignore unknown - args
Stavros Sachtouris [Wed, 19 Dec 2012 16:14:45 +0000 (18:14 +0200)]
Merge branches 'feature-output' and 'develop' into develop
Stavros Sachtouris [Wed, 19 Dec 2012 16:06:30 +0000 (18:06 +0200)]
Deal with with argparse stupid error handling
argparse people must be sadists or they just hate other programers
Stavros Sachtouris [Wed, 19 Dec 2012 14:33:30 +0000 (16:33 +0200)]
Extent store_list to use path as prefix
kamaki store list mycontainer:phot
will list all objects in mycontainer prefixed with phot
Stavros Sachtouris [Wed, 19 Dec 2012 14:14:08 +0000 (16:14 +0200)]
Full pretty errors in container-path storage check
Stavros Sachtouris [Wed, 19 Dec 2012 12:22:10 +0000 (14:22 +0200)]
Test pretty error details with container-not-found
Stavros Sachtouris [Wed, 19 Dec 2012 10:38:55 +0000 (12:38 +0200)]
Run ignores self in command listing
Stavros Sachtouris [Wed, 19 Dec 2012 10:29:50 +0000 (12:29 +0200)]
Show long description in all places it could be
Stavros Sachtouris [Tue, 18 Dec 2012 16:12:28 +0000 (18:12 +0200)]
Show long description if available
Stavros Sachtouris [Tue, 18 Dec 2012 15:44:07 +0000 (17:44 +0200)]
Restructure interface code
Stavros Sachtouris [Tue, 18 Dec 2012 14:00:06 +0000 (16:00 +0200)]
Windows installation guide
Stavros Sachtouris [Tue, 18 Dec 2012 12:31:03 +0000 (14:31 +0200)]
Merge branch 'develop' into feature-windows
Stavros Sachtouris [Tue, 18 Dec 2012 12:30:15 +0000 (14:30 +0200)]
Prepent installation from package to source
Stavros Sachtouris [Tue, 18 Dec 2012 10:56:41 +0000 (12:56 +0200)]
Update history docs
Stavros Sachtouris [Tue, 18 Dec 2012 10:32:41 +0000 (12:32 +0200)]
Debug history run
Stavros Sachtouris [Tue, 18 Dec 2012 09:26:02 +0000 (11:26 +0200)]
Resolve conflict
Stavros Sachtouris [Tue, 18 Dec 2012 09:23:50 +0000 (11:23 +0200)]
Merge remote-tracking branch 'origin/develop' into feature-windows
Conflicts:
kamaki/cli/__init__.py
kamaki/cli/argument.py
kamaki/cli/command_shell.py
kamaki/cli/command_tree.py
kamaki/cli/commands/__init__.py
kamaki/cli/commands/astakos_cli.py
kamaki/cli/commands/config_cli.py
kamaki/cli/commands/cyclades_cli.py
kamaki/cli/commands/history_cli.py
kamaki/cli/commands/image_cli.py
kamaki/cli/commands/pithos_cli.py
kamaki/cli/commands/test_cli.py
kamaki/cli/config.py
kamaki/cli/errors.py
kamaki/cli/history.py
kamaki/cli/utils.py
kamaki/clients/connection/kamakicon.py
kamaki/clients/tests.py
Stavros Sachtouris [Mon, 17 Dec 2012 18:07:33 +0000 (20:07 +0200)]
Help user initial kamaki setup (docs and defaults)
Stavros Sachtouris [Mon, 17 Dec 2012 17:52:42 +0000 (19:52 +0200)]
Clean up code
Stavros Sachtouris [Mon, 17 Dec 2012 17:33:23 +0000 (19:33 +0200)]
Allow general options to run a@ initial kamaki
kamaki -v runs a kamaki shell with verbose on!
Stavros Sachtouris [Mon, 17 Dec 2012 17:11:26 +0000 (19:11 +0200)]
Propagate warning-logging
Stavros Sachtouris [Mon, 17 Dec 2012 16:44:50 +0000 (18:44 +0200)]
Introduce warning logger
Stavros Sachtouris [Mon, 17 Dec 2012 15:53:16 +0000 (17:53 +0200)]
Use a non-unicode progress-bar instead
Stavros Sachtouris [Fri, 14 Dec 2012 16:04:53 +0000 (18:04 +0200)]
Forgotten Typos
Stavros Sachtouris [Fri, 14 Dec 2012 14:45:35 +0000 (16:45 +0200)]
Update pgp info in docs
Stavros Sachtouris [Fri, 14 Dec 2012 13:03:56 +0000 (15:03 +0200)]
Merge branch 'features/output' into develop
Stavros Sachtouris [Fri, 14 Dec 2012 13:03:11 +0000 (15:03 +0200)]
Make shell prompt sustainable to modifications
and add a space after :
Stavros Sachtouris [Fri, 14 Dec 2012 12:52:53 +0000 (14:52 +0200)]
line warning in docs
Stavros Sachtouris [Fri, 14 Dec 2012 10:35:56 +0000 (12:35 +0200)]
Merge branch 'features/history' into develop
Stavros Sachtouris [Fri, 14 Dec 2012 10:31:42 +0000 (12:31 +0200)]
History show and load with more features
show without args: show all
show/load can accept:
* list of integers
* negative numbers, meaning we count from the end of history list
* number ranges (e.g. 2-7, -20-9, -29--9)
* 0 means "start of the list", (e.g. 0-2 prints the first 2,
-3-0 prints the last 3, etc)
* all of the above seperated with spaces
* order maters, repetitions allowed (show that history-load can behave
like a script)
Dionysis Zindros [Wed, 12 Dec 2012 19:01:38 +0000 (21:01 +0200)]
Merge with develop
Dionysis Zindros [Wed, 12 Dec 2012 19:00:33 +0000 (21:00 +0200)]
Merge branch 'develop' into feature-windows
Dionysis Zindros [Wed, 12 Dec 2012 18:59:10 +0000 (20:59 +0200)]
Merge into develop
Dionysis Zindros [Wed, 12 Dec 2012 18:58:04 +0000 (20:58 +0200)]
Prepare to merge into develop
Dionysis Zindros [Wed, 12 Dec 2012 18:48:48 +0000 (20:48 +0200)]
Rename the pool library to 'objpool'.
Dionysis Zindros [Wed, 12 Dec 2012 18:47:37 +0000 (20:47 +0200)]
Windows port: Unit tests now avoid /dev/urandom.
Instead of using /dev/urandom which is specific to UNIX systems, switch to the
Python os.urandom() which is a cross-system solution and also works on Windows
systems. This allows for running the unit tests on Windows systems as well.
Dionysis Zindros [Wed, 12 Dec 2012 18:47:07 +0000 (20:47 +0200)]
Rephrase comment to avoid profanity.
Dionysis Zindros [Wed, 12 Dec 2012 18:46:26 +0000 (20:46 +0200)]
Fix bug where unit tests read the wrong file.
Dionysis Zindros [Wed, 12 Dec 2012 18:44:18 +0000 (20:44 +0200)]
Windows port: Avoid /tmp for temp files.
Switch from hard-coded /tmp usage to a cross-compatible solution that utilizes
Python's tempfile module.
This adds support for running the unit tests on Windows systems.
Dionysis Zindros [Wed, 12 Dec 2012 18:38:40 +0000 (20:38 +0200)]
Explicit error message for offset/size mismatch.
To assist porting to Windows, offset/size mismatch when reading files is now
being clearly reported with detailed error messages.
Dionysis Zindros [Wed, 12 Dec 2012 18:35:48 +0000 (20:35 +0200)]
Windows port: All binary files now opened using the 'b' flag
Stavros Sachtouris [Wed, 12 Dec 2012 17:26:30 +0000 (19:26 +0200)]
Merge branch 'features/history' into develop
Stavros Sachtouris [Wed, 12 Dec 2012 17:26:02 +0000 (19:26 +0200)]
history show specific command id or range
Stavros Sachtouris [Wed, 12 Dec 2012 17:06:30 +0000 (19:06 +0200)]
Suit up for release
Stavros Sachtouris [Wed, 12 Dec 2012 16:19:59 +0000 (18:19 +0200)]
Re-activate get/set_profile unittests
Stavros Sachtouris [Wed, 12 Dec 2012 15:33:22 +0000 (17:33 +0200)]
Merge branch 'features/history' into develop
Stavros Sachtouris [Wed, 12 Dec 2012 15:32:37 +0000 (17:32 +0200)]
Document History changes
Stavros Sachtouris [Wed, 12 Dec 2012 14:30:22 +0000 (16:30 +0200)]
Rename history.recall to load, allow multiple ids
load 1 3 5-7 8 ...
also can repeat commands:
load 1 4 1 3-5 (repeats 1 and 4)
Stavros Sachtouris [Wed, 12 Dec 2012 14:01:04 +0000 (16:01 +0200)]
Remove condig rehash warning
The bug with config in shell (changes were not effective immidiately) was
corrected with features/output merge
Stavros Sachtouris [Wed, 12 Dec 2012 12:36:03 +0000 (14:36 +0200)]
Proofreading documentation fixes
Stavros Sachtouris [Wed, 12 Dec 2012 11:56:56 +0000 (13:56 +0200)]
History in shell can execute commands ('recall')
Stavros Sachtouris [Tue, 11 Dec 2012 17:29:34 +0000 (19:29 +0200)]
Plant a _cmd_tree idea in cli.history_recall
If an interface needs a recall, it should provide a full cmd_tree
Stavros Sachtouris [Tue, 11 Dec 2012 17:14:00 +0000 (19:14 +0200)]
Check clients.retrieve works
Stavros Sachtouris [Tue, 11 Dec 2012 17:03:46 +0000 (19:03 +0200)]
Add a retrieve method
Stavros Sachtouris [Tue, 11 Dec 2012 11:59:34 +0000 (13:59 +0200)]
Bugfix shell with custom config file
Stavros Sachtouris [Mon, 10 Dec 2012 18:55:03 +0000 (20:55 +0200)]
shell help messages are full
Stavros Sachtouris [Mon, 10 Dec 2012 16:18:20 +0000 (18:18 +0200)]
Remove config from shell arguments (careful!)
config module is needed for initializing stuff, but should not be
allowd *after* shell is up and running
Stavros Sachtouris [Mon, 10 Dec 2012 15:55:09 +0000 (17:55 +0200)]
cyclades_cli take advntg of updated utils
Stavros Sachtouris [Mon, 10 Dec 2012 15:18:17 +0000 (17:18 +0200)]
Introduce enumrated list/dict print
Stavros Sachtouris [Mon, 10 Dec 2012 15:01:23 +0000 (17:01 +0200)]
Remove brackets from print_list
Stavros Sachtouris [Mon, 10 Dec 2012 14:45:32 +0000 (16:45 +0200)]
Ommit print_list from cli.commands plugins
Stavros Sachtouris [Mon, 10 Dec 2012 14:40:55 +0000 (16:40 +0200)]
Pretty print_list
Stavros Sachtouris [Mon, 10 Dec 2012 14:14:52 +0000 (16:14 +0200)]
Fix unwanted error-detail inheritance bug
Stavros Sachtouris [Mon, 10 Dec 2012 14:08:15 +0000 (16:08 +0200)]
Add info in container-not-found error
Stavros Sachtouris [Mon, 10 Dec 2012 13:31:26 +0000 (15:31 +0200)]
Create dict/list prints test
Stavros Sachtouris [Mon, 10 Dec 2012 13:21:55 +0000 (15:21 +0200)]
Nicer container:path syntax errors in pithos cli
Stavros Sachtouris [Mon, 10 Dec 2012 12:04:17 +0000 (14:04 +0200)]
Fix pithos_cli.hashmap typo
Stavros Sachtouris [Mon, 10 Dec 2012 11:50:06 +0000 (13:50 +0200)]
Fix typo (get_object_hashmapp)
Stavros Sachtouris [Mon, 10 Dec 2012 11:37:00 +0000 (13:37 +0200)]
Remove unused shell options
Stavros Sachtouris [Mon, 10 Dec 2012 11:31:41 +0000 (13:31 +0200)]
Merge branch 'features/rfctr-argument' into develop
Stavros Sachtouris [Mon, 10 Dec 2012 11:21:09 +0000 (13:21 +0200)]
Fix unwanted argument inheritance bug in shell
Stavros Sachtouris [Fri, 7 Dec 2012 17:24:29 +0000 (19:24 +0200)]
Pithos+ publish returns access url
Stavros Sachtouris [Fri, 7 Dec 2012 17:05:45 +0000 (19:05 +0200)]
Let shell be ready for unexpected errors
Stavros Sachtouris [Fri, 7 Dec 2012 16:50:44 +0000 (18:50 +0200)]
Bugfix with previour-errors remaining details
Stavros Sachtouris [Fri, 7 Dec 2012 16:40:54 +0000 (18:40 +0200)]
Minor bugfix
Stavros Sachtouris [Fri, 7 Dec 2012 16:34:31 +0000 (18:34 +0200)]
Propagate error handling at cli.argument
Stavros Sachtouris [Fri, 7 Dec 2012 16:28:39 +0000 (18:28 +0200)]
Propagate error handling to cli.utils
Stavros Sachtouris [Fri, 7 Dec 2012 16:17:18 +0000 (18:17 +0200)]
Propagate new error handling to cli.commands
New error handling is done only with cli.errors raiseCLIError methos
Stavros Sachtouris [Fri, 7 Dec 2012 15:43:01 +0000 (17:43 +0200)]
Kamakitest error msgs, error-handling bugfixes
Stavros Sachtouris [Fri, 7 Dec 2012 15:06:59 +0000 (17:06 +0200)]
Propagate error mechanism in pithos_cli
Stavros Sachtouris [Fri, 7 Dec 2012 14:05:38 +0000 (16:05 +0200)]
Trace errors in cli.commands mechanism-not prpgtd
Stavros Sachtouris [Fri, 7 Dec 2012 12:49:45 +0000 (14:49 +0200)]
Track and log errors at connection and clients mod
Stavros Sachtouris [Thu, 6 Dec 2012 15:52:55 +0000 (17:52 +0200)]
Merge branch 'rfctr-argument' into develop
Stavros Sachtouris [Thu, 6 Dec 2012 15:52:21 +0000 (17:52 +0200)]
Fix shell extra args bug
Stavros Sachtouris [Thu, 6 Dec 2012 15:11:36 +0000 (17:11 +0200)]
Forgotten print
Stavros Sachtouris [Thu, 6 Dec 2012 14:50:29 +0000 (16:50 +0200)]
Propagate-debug changes for shell + debug
Stavros Sachtouris [Thu, 6 Dec 2012 13:36:08 +0000 (15:36 +0200)]
Cleanup deprecated method in argument