Metadata-Version: 1.0
Name: fez.djangothreadlocal
Version: 0.3
Summary: Add the user object to Django threadlocals
Home-page: http://www.fezconsulting.com
Author: Dan Fairs
Author-email: dan@fezconsulting.com
License: MIT
Description: Introduction
        ============
        
        Provides a simple middleware and API to get hold of the currently
        logged-in user.
        
        Usage
        =====
        
        Simply add fez.djangothreadlocal.middleware.threadlocals.ThreadLocals
        to your MIDDLEWARE_CLASSES in settings.py, for example:
        
        MIDDLEWARE_CLASSES = (
        'django.middleware.common.CommonMiddleware',
        'django.contrib.sessions.middleware.SessionMiddleware',
        'django.contrib.auth.middleware.AuthenticationMiddleware',
        'django.middleware.doc.XViewMiddleware',
        'fez.djangothreadlocal.middleware.threadlocals.ThreadLocals',
        )
        
        You should then be able to get hold of the current logged-in
        user (or anonymous user) as follows:
        
        from fez.djangothreadlocal.middleware import threadlocals
        user = threadlocals.get_current_user()
        Changelog
        =========
        
        0.3 - Initial release
        ---------------------
        
        * Initial release
        
        
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Framework :: Django
Classifier: License :: OSI Approved :: MIT License
