History | View | Annotate | Download (8.3 kB)
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...
cyclades: s/BaseCommand/SynnefoCommand
Replace use of BaseCommand with SynnefoCommand which will convert thearguments/options to unicode objects.
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: 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: 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.
cyclades: Fix output of network-inspect command
snf-django: PEP8 fixes
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,...