{ "info": { "author": "Dan Fairs", "author_email": "dan@fezconsulting.com", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Introduction\n============\n\nProvides a simple middleware and API to get hold of the currently\nlogged-in user. \n\nUsage\n=====\n\nSimply add fez.djangothreadlocal.middleware.threadlocals.ThreadLocals\nto your MIDDLEWARE_CLASSES in settings.py, for example:\n\nMIDDLEWARE_CLASSES = (\n 'django.middleware.common.CommonMiddleware',\n 'django.contrib.sessions.middleware.SessionMiddleware',\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\n 'django.middleware.doc.XViewMiddleware',\n 'fez.djangothreadlocal.middleware.threadlocals.ThreadLocals',\n)\n\nYou should then be able to get hold of the current logged-in\nuser (or anonymous user) as follows:\n\nfrom fez.djangothreadlocal.middleware import threadlocals\nuser = threadlocals.get_current_user()\nChangelog\n=========\n\n0.3 - Initial release\n---------------------\n\n* Initial release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.fezconsulting.com", "keywords": "", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "fez.djangothreadlocal", "package_url": "https://pypi.org/project/fez.djangothreadlocal/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/fez.djangothreadlocal/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.fezconsulting.com" }, "release_url": "https://pypi.org/project/fez.djangothreadlocal/0.3/", "requires_dist": null, "requires_python": null, "summary": "Add the user object to Django threadlocals", "version": "0.3" }, "last_serial": 653848, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "1b3b2e55154de976970246467d1bb5e0", "sha256": "78c1cd672633285698ea1b4a1810a1b7be6009fa80f1b07004427ec1d17c3e81" }, "downloads": -1, "filename": "fez.djangothreadlocal-0.3.tar.gz", "has_sig": false, "md5_digest": "1b3b2e55154de976970246467d1bb5e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2679, "upload_time": "2008-08-27T19:49:32", "url": "https://files.pythonhosted.org/packages/ab/8a/8455087a4afa77f7b175aa1e77cae7b8dcf7f71cd2c7b909e98326888877/fez.djangothreadlocal-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1b3b2e55154de976970246467d1bb5e0", "sha256": "78c1cd672633285698ea1b4a1810a1b7be6009fa80f1b07004427ec1d17c3e81" }, "downloads": -1, "filename": "fez.djangothreadlocal-0.3.tar.gz", "has_sig": false, "md5_digest": "1b3b2e55154de976970246467d1bb5e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2679, "upload_time": "2008-08-27T19:49:32", "url": "https://files.pythonhosted.org/packages/ab/8a/8455087a4afa77f7b175aa1e77cae7b8dcf7f71cd2c7b909e98326888877/fez.djangothreadlocal-0.3.tar.gz" } ] }