snf_django: Use 'replace' error strategy
Make custom CommandError use 'replace' strategy for unicodes that cannotbe decoded to user's preferred encoding.
snf_django: Handle unicode in CommandError
Define a custom CommandError, which applies smart_locale_str() in itsstr method.
snf_django: Fix unicode decoding in SynnefoCommand
Some options of snf-manage commands maybe list or tuples. Applying'smart_unicode' to them will convert them to unicode object. Insteadof recursively converting data, we convert the arguments to unicodes...
snf_django: Fix typo
snf_django: Revert wrong change in exclude list
Revert way that 'exclude' is called, from commit #99955a0.
snf_django: Handle unicodes in SynnefoCommand
Extend SynnefoCommand to override 'run_from_argv' function in orderto decode command line argumuents and options, using the user'spreferred encoding.
snf_django: Properly chain `exclude' queries
Although chained filters, e.g. filter(p1).filter(p2), can be summed up asfilter(p1, p2), this is not the case with exclude. If you want to excludethose selected by p1 as well as those selected by p2, you need...
snf_django: Fix select_related in ListCommand
Pass all related fields in a single call, because select_related does notchain as expected (yet). See https://code.djangoproject.com/ticket/16855
Also pass prefetch_related in a uniform way.
snf_django: Fix bug in list commands
Fix bug in Synnefo ListCommand where you could not select to print onlythe user email columnd ('-o user.email').
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 ,thatparsed filters to querytset arguments, to 'parse_queryset_filters.The new function is currently unused.
cyclades: Optimize server-list command
Optimize server-list command by prefetching related fields if needed.
snf_django: Fix typo in --output-format help text
django: Add a RemoveCommand class
cyclades: Update some snf-manage commands
cyclades: Verbal fixes on some snf-manage commands
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...
snf-django: Optimize DB queries in ListCommand
Add options to use 'prefetch_related' and 'select_related' options ofDjango queries to optimize the DB queries.
django-lib: Use the new AstakosClient
snf-django: Move ListCommand to snf-django
snf-webproject contained the generic ListCommand, and because of this ithad a dependency from snf-django-lib. This commit moves this command fromsnf-webproject to snf-django-lib and removes this dependency. Also,...