Changeset 8811 for mauRepo


Ignore:
Timestamp:
05/09/13 12:10:28 (6 years ago)
Author:
mnagni
Message:

moves version to 0.14
parameterizes cookie_domain method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/dj_security_middleware/trunk/dj_security_middleware/__init__.py

    r8800 r8811  
    1 __version__ = '0.0.13' 
     1__version__ = '0.0.14' 
    22 
    33from django.conf import settings 
     
    2424    return getattr(settings, 'AUTH_TKT_NAME', 'auth_tkt') 
    2525 
    26 def cookie_domain(): 
     26def cookie_domain(c_domain = None): 
    2727    try: 
    28         return getattr(settings, 'COOKIE_DOMAIN') 
     28        return getattr(settings, 'COOKIE_DOMAIN', c_domain) 
    2929    except AttributeError: 
    3030        netloc = urlparse.urlparse(login_service()).netloc 
Note: See TracChangeset for help on using the changeset viewer.