Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo @ 5ba2cfd2

Name Size
  admin
  api
  app_settings
  db
  helpdesk
  locale
  logic
  management
  plankton
  quotas
  tools
  ui
  userdata
  versions
  vmapi
__init__.py 1.7 kB
cyclades_settings.py 4.7 kB

Latest revisions

# Date Author Comment
5ba2cfd2 02/26/2014 09:50 pm Christos Stavrakakis

cyclades: Add str method to all DB models

Add str method to all DB models, that simply calls unicode
method. Because str will return a unicode string it will be ignored,
and the result from unicode will be used.

4e571185 02/25/2014 03:01 pm Dionysis Grigoropoulos

plankton: Handle a potential 500 error in plankton

  • Catch a potential 500 error, when registering a file as an Image, while
    trying to decode "Image name" into unicode.
  • Add corresponding test case
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.

a4e9c19c 02/21/2014 04:11 pm Christos Stavrakakis

plankton: Fix handling of HTTP headers

Handle properly image properties that are passed through HTTP headers.
We convert the request headers to image properties by unquoting them and
then decoding them to Unicode objects using 'utf-8' encoding. Image keys...

f259c6d9 02/21/2014 04:07 pm Christos Stavrakakis

cyclades: Make all DB models return unicode repr

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

cyclades: Replace 'uenc' with 'smart_unicode'

Replace use of 'synnefo.util.text.uenc' function with
'django.utils.encoding.smart_unicode'.

'uenc' function depends on the locale category LC_CTYPE, which is not
appropriate for Cyclades API. We explicitly use 'smart_unicode' and...

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.

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

cyclades: Fix list objects in enforce

Convert set back to list, because the code further down requires an
indexable object.

9c6d629f 02/19/2014 06:19 pm Giorgos Korfiatis

Remove keypath, use common dict operations instead

Replace get_path with dict indexing. Remove unused setting
`CYCLADES_CUSTOMIZE_SERVICES' that used set_path. Remove the util/keypath.py
module.

dfc7aab7 02/19/2014 06:19 pm Giorgos Korfiatis

Replace set_path with defaultdict in quota handling

View revisions

Also available in: Atom