Statistics
| Branch: | Tag: | Revision:

root / snf-django-lib / snf_django / management @ 75ec29e4

Name Size
  commands
__init__.py 0 Bytes
tests.py 977 Bytes
utils.py 7.7 kB

Latest revisions

# Date Author Comment
75ec29e4 03/04/2014 06:18 pm Ilias Tsitsimpis

Log Synnefo management commands to files

Create 'SynnefoOutputWrapper' which replaces Django's 'OutputWrapper'
and logs the command and its output in a file.

Issue #4948: Log all stdout/stderr for snf-manage invocations

5b50c3b4 02/28/2014 04:11 pm Christos Stavrakakis

cyclades: Fix inheritance of RemoveCommand

Make RemoveCommand inherit from SynnefoCommand. Also, add options of
remove commands to command specific options.

07661d4d 02/27/2014 11:37 am Christos Stavrakakis

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.

fa532396 02/26/2014 04:41 pm Christos Stavrakakis

snf_django: Use option groups in SynnefoCommand

Extend SynnefoCommand to use option groups to distinguish between common
and 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...

2be50766 02/26/2014 12:02 pm Christos Stavrakakis

cyclades: Create common '-u/--user' option

Create 'cli_option' module, to contain the common definitions for
options of Synnefo management commands.

Currently, it contains only the '--user' option definition which accepts
user's UUID or email and annotates the command options with the...

c8922d01 02/20/2014 04:41 pm Giorgos Korfiatis

snf_django: Properly chain `exclude' queries

Although chained filters, e.g. filter(p1).filter(p2), can be summed up as
filter(p1, p2), this is not the case with exclude. If you want to exclude
those selected by p1 as well as those selected by p2, you need...

787f7372 02/13/2014 04:20 pm Giorgos Korfiatis

snf_django: Fix select_related in ListCommand

Pass all related fields in a single call, because select_related does not
chain as expected (yet). See https://code.djangoproject.com/ticket/16855

Also pass prefetch_related in a uniform way.

4845dfaa 01/23/2014 11:02 am Christos Stavrakakis

snf_django: Fix bug in list commands

Fix bug in Synnefo ListCommand where you could not select to print only
the user email columnd ('-o user.email').

48233747 12/02/2013 04:52 pm Christos Stavrakakis

snf_django: Add new filtering fuction

Add new 'filter_objects_results' function to apply filters, e.g. from
--filter-by option to objects. Rename old 'parse_filters' function ,that
parsed filters to querytset arguments, to 'parse_queryset_filters.
The new function is currently unused.

2052c40e 12/02/2013 04:52 pm Christos Stavrakakis

cyclades: Optimize server-list command

Optimize server-list command by prefetching related fields if needed.

View revisions

Also available in: Atom