snf_django: Use 'replace' error strategy
Make custom CommandError use 'replace' strategy for unicodes that cannotbe decoded to user's preferred encoding.
snf_django: Fix csv unicode writer
Use recipe from http://docs.python.org/2/library/csv.html to write unicodein csv format.
snf_django: Handle unicode in CommandError
Define a custom CommandError, which applies smart_locale_str() in itsstr method.
snf_django: Fix alignment in pprint_table command
Alignment was broken from new code that decoded table fields usinguser's encoding, since len() function will count length of bytes and notcharacters. This commit fixes by making pprint_table work only with...
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.
cyclades: s/BaseCommand/SynnefoCommand
Replace use of BaseCommand with SynnefoCommand which will convert thearguments/options to unicode objects.
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: Add utils function to handle unicodes
Add utils functions to handle unicode objects from 'snf-manage' usingthe user's preferred encoding. Also add 'safe_string' function toescape control characters from strings and unicode objects.
snf_django: Replace uenc with smart_unicode
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
cyclades: Command to export Cyclades statistics
Add new 'snf-manage stats-cyclades' management command to export basicstatistics about Cyclades, like number of servers, network and resourceutilization. The command can either export the statistics either in JSON...
snf_django: Impose ordering on operator parsing
Turn the dict of operators to a list to make sure a certain ordering ispreserved.
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
cyclades: Fix output of network-inspect command
snf-django: PEP8 fixes
Fix stale import statements
Commit 7cfc0ce moved code from webproject to snf_django. This commitfixes some stale imports that skipped renaming.
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,...