Revision 19ddd41b snf-pithos-app/pithos/api/dispatch.py

b/snf-pithos-app/pithos/api/dispatch.py
1
from pithos.api.settings import (BACKEND_QUOTA, BACKEND_VERSIONING)
2

  
3 1
#from pithos.backends import connect_backend
4 2
from pithos.api.util import hashmap_md5, get_backend
5 3

  
6 4
from django.core.mail import send_mail
7
from django.utils.translation import ugettext as _
8 5

  
9 6
from astakos.im.settings import DEFAULT_FROM_EMAIL
10 7

  
......
17 14
        return
18 15

  
19 16
    backend = get_backend()
20
    backend.default_policy['quota'] = BACKEND_QUOTA
21
    backend.default_policy['versioning'] = BACKEND_VERSIONING
22 17

  
23 18
    path = m['value']
24 19
    account, container, name = path.split('/', 2)

Also available in: Unified diff