Statistics
| Branch: | Tag: | Revision:

root / snf-django-lib / snf_django / management @ fa532396

# Date Author Comment
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.

85ddc6a3 11/29/2013 01:34 pm Christos Stavrakakis

snf_django: Fix typo in --output-format help text

c406d7d9 11/25/2013 01:13 pm Dionysis Grigoropoulos

django: Add a RemoveCommand class

  • Add a new class for snf-manage *-remove commands
0f89715b 11/25/2013 01:13 pm Dionysis Grigoropoulos

cyclades: Update some snf-manage commands

  • Update network-remove, server-remove, floating-ip-remove, port-remove
    to extend RemoveCommand class added in commit
    ec15e2ab68f90dcc7310863c9293708055fbfb7d
d27b16cc 11/25/2013 01:13 pm Dionysis Grigoropoulos

cyclades: Verbal fixes on some snf-manage commands

d9f2a9e1 11/21/2013 01:28 pm Christos Stavrakakis

cyclades: Command to export Cyclades statistics

Add new 'snf-manage stats-cyclades' management command to export basic
statistics about Cyclades, like number of servers, network and resource
utilization. The command can either export the statistics either in JSON...

78c79ac7 11/14/2013 06:17 pm Giorgos Korfiatis

snf_django: Impose ordering on operator parsing

Turn the dict of operators to a list to make sure a certain ordering is
preserved.

a1dae38d 11/12/2013 01:34 pm Christos Stavrakakis

Merge branch 'feature-cyclades-networks' into develop

Conflicts:
snf-cyclades-app/synnefo/api/management/commands/server-inspect.py
snf-cyclades-app/synnefo/app_settings/urls.py
snf-cyclades-app/synnefo/logic/backend.py
snf-cyclades-app/synnefo/logic/backend_allocator.py...

3b6afb38 11/07/2013 04:28 pm Christos Stavrakakis

snf-django: Optimize DB queries in ListCommand

Add options to use 'prefetch_related' and 'select_related' options of
Django queries to optimize the DB queries.

ef57e622 10/29/2013 03:37 pm Ilias Tsitsimpis

django-lib: Use the new AstakosClient

a859190b 10/29/2013 02:57 pm Christos Stavrakakis

cyclades: Fix output of network-inspect command

d546637f 08/05/2013 04:06 pm Christos Stavrakakis

snf-django: PEP8 fixes

d758784b 08/05/2013 02:39 pm Christos Stavrakakis

Fix stale import statements

Commit 7cfc0ce moved code from webproject to snf_django. This commit
fixes some stale imports that skipped renaming.

7cfc0cef 08/05/2013 12:45 pm Christos Stavrakakis

snf-django: Move ListCommand to snf-django

snf-webproject contained the generic ListCommand, and because of this it
had a dependency from snf-django-lib. This commit moves this command from
snf-webproject to snf-django-lib and removes this dependency. Also,...