openmicroscopy/openmicroscopy — pull request #514 by sbesson (2012-12-03 14:58:22+00:00)
Title: CLI user/group improvements 2

This PR is a follow-up of #498 and implements a couple of fixes/RFEs as suggested by @ximenesuk:

- `user list`/`group list` now explicitly support a choice between `--long` and `--count`, `--count` being the default for group list and `--long` the default for user list

- `user list`/`group list` now sorts user/groups and support a choice between `--sort-by-id` and `--sort-by-name`, `--sort-by-id` being the default in both cases

- `group add`/`group perms`: exposed permissions and string/type mappings are now defined in a dictionary. Only permissions allowed are the ones defined in the documentation (private, read-annotate, read-write)