Use SynnefoCommand for django-admin commands
Instead of django's BaseCommand class, use out SynnefoCommand whichtakes care of logging the command and its output.
Issue #4948: Log all stdout/stderr for snf-manage invocations
Fix console output for management commands
From Django's documentation: When you are using management commands and wish to provide console output, you should write to self.stdout and self.stderr, instead of printing to stdout and stderr directly.
This patch fixes the managements commands to use the proper...
cyclades: Fix inheritance of RemoveCommand
Make RemoveCommand inherit from SynnefoCommand. Also, add options ofremove commands to command specific options.
cyclades: Common function to get object by ID
Create common helper function, for command line tools, to get an objectfrom DB by it's ID, and raise the appropriate command error if theobject does not exist or the ID is invalid.
snf_django: Add pprint_table to SynnefoCommand
Add 'pprint_table' to SynnefoCommand, which is just a wrapper around'snf_django.management.utils.pprint_table' using commands stdout.
snf_django: Use option groups in SynnefoCommand
Extend SynnefoCommand to use option groups to distinguish between commonand command-specific options, by overriding the 'create_parser' method.The command specific options must be declared in the'command_option_list' attribute of the SynnefoCommand. Also, we use a...
cyclades: Include project in server management commands
cyclades: Extend flavors with 'allow_create' field
cyclades: Update snf-manage subnet-* commands
cyclades: Display IPs in stats-cyclades
Display free and total public IPv4 addresses when pretty-printingCyclades stats.
View revisions
Also available in: Atom