Statistics
| Branch: | Tag: | Revision:

root / snf-django-lib / snf_django @ 1ed138e8

Name Size
  lib
  management
  utils
__init__.py 0 Bytes

Latest revisions

# Date Author Comment
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.

2e90e666 02/24/2014 12:49 pm Christos Stavrakakis

Replace use of 'udec' with 'smart_unicode'

01c660b6 02/21/2014 04:07 pm Christos Stavrakakis

snf_django: Replace uenc with smart_unicode

c4e22972 02/21/2014 04:05 pm Christos Stavrakakis

snf_django: Explicitly set encoding of requests

Explicitly set request encoding to UTF-8 instead of relying
DEFAULT_CHARSET setting. See:
https://docs.djangoproject.com/en/1.4/ref/unicode/#form-submission

5a6cee09 02/21/2014 04:05 pm Christos Stavrakakis

snf_django: Handle unicode errors in JSON bodies

Catch unicode errors when JSON deserializing the body of a request.
Also, rename 'get_request_dict' function to 'get_json_body', as it is a
more represenative name for what the function is doing.

c8922d01 02/20/2014 04:41 pm Giorgos Korfiatis

snf_django: Properly chain `exclude' queries

Although chained filters, e.g. filter(p1).filter(p2), can be summed up as
filter(p1, p2), this is not the case with exclude. If you want to exclude
those selected by p1 as well as those selected by p2, you need...

b1f6aea8 02/13/2014 04:20 pm Giorgos Korfiatis

snf_django: Factor out resource reconcile

Generalize the checks operated during resource reconciliation so that they
can be used in all Synnefo components.

Adapt checks for user/project limits, include checks for project limits.

View revisions

Also available in: Atom