Revision 1439d638 snf-astakos-app/astakos/im/cookie.py

b/snf-astakos-app/astakos/im/cookie.py
36 36
from urllib import quote, unquote
37 37

  
38 38
from django.contrib.auth.models import AnonymousUser
39
from django.http import HttpRequest
40 39
from django.utils.translation import ugettext as _
41 40

  
42 41
from astakos.im.settings import (
......
46 45

  
47 46
logger = logging.getLogger(__name__)
48 47

  
48

  
49 49
class Cookie():
50 50
    def __init__(self, request, response=None):
51 51
        cookies = getattr(request, 'COOKIES', {})
......
81 81
        if not self.response:
82 82
            raise ValueError(_(astakos_messages.NO_RESPONSE))
83 83
        user = self.user
84
        expire_fmt = user.auth_token_expires.strftime('%a, %d-%b-%Y %H:%M:%S %Z')
84
        expire_fmt = user.auth_token_expires.strftime(
85
            '%a, %d-%b-%Y %H:%M:%S %Z')
85 86
        if TRANSLATE_UUIDS:
86 87
            cookie_value = quote(user.username + '|' + user.auth_token)
87 88
        else:

Also available in: Unified diff