Statistics
| Branch: | Tag: | Revision:

root / snf-django-lib @ 72cbea06

Name Size
  snf_django
COPYRIGHT 1.5 kB
MANIFEST.in 28 Bytes
distribute_setup.py 15.4 kB
setup.py 6.3 kB

Latest revisions

# Date Author Comment
72cbea06 02/26/2014 09:19 pm Christos Stavrakakis

snf_django: Use 'replace' error strategy

Make custom CommandError use 'replace' strategy for unicodes that cannot
be decoded to user's preferred encoding.

fb8357c8 02/26/2014 06:03 pm Giorgos Korfiatis

snf_django: Fix csv unicode writer

Use recipe from http://docs.python.org/2/library/csv.html to write unicode
in csv format.

1e285210 02/26/2014 06:03 pm Giorgos Korfiatis

snf_django: Handle unicode in CommandError

Define a custom CommandError, which applies smart_locale_str() in its
str method.

4267cb32 02/26/2014 12:43 pm Christos Stavrakakis

snf_django: Fix alignment in pprint_table command

Alignment was broken from new code that decoded table fields using
user's encoding, since len() function will count length of bytes and not
characters. This commit fixes by making pprint_table work only with...

857f8a2f 02/25/2014 05:58 pm Christos Stavrakakis

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. Instead
of recursively converting data, we convert the arguments to unicodes...

51e5aa11 02/24/2014 02:12 pm Christos Stavrakakis

snf_django: Fix typo

1ed138e8 02/24/2014 01:41 pm Christos Stavrakakis

snf_django: Revert wrong change in exclude list

Revert way that 'exclude' is called, from commit #99955a0.

8c911970 02/24/2014 01:14 pm Christos Stavrakakis

cyclades: s/BaseCommand/SynnefoCommand

Replace use of BaseCommand with SynnefoCommand which will convert the
arguments/options to unicode objects.

99955a02 02/24/2014 01:07 pm Christos Stavrakakis

snf_django: Handle unicodes in SynnefoCommand

Extend SynnefoCommand to override 'run_from_argv' function in order
to decode command line argumuents and options, using the user's
preferred encoding.

91c788ec 02/24/2014 01:05 pm Christos Stavrakakis

snf_django: Add utils function to handle unicodes

Add utils functions to handle unicode objects from 'snf-manage' using
the user's preferred encoding. Also add 'safe_string' function to
escape control characters from strings and unicode objects.

View revisions

Also available in: Atom