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.
Replace use of 'udec' with 'smart_unicode'
snf_django: Replace uenc with smart_unicode
snf_django: Explicitly set encoding of requests
Explicitly set request encoding to UTF-8 instead of relyingDEFAULT_CHARSET setting. See:https://docs.djangoproject.com/en/1.4/ref/unicode/#form-submission
View revisions
Also available in: Atom