{ "info": { "author": "Owais Lone", "author_email": "owais.lone@ikraftsoft.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "=================\nDjango UserSwitch\n=================\n\nA quick 'n' dirty django app for switching between different users while testing.\n\n* \"Quick and dirty\". Just include the middleware. That's it!\n* Provides a select box with a list of users.\n* User list can be defined in ``settings`` or all users are loaded.\n* Works only when ``settings.DEBUG`` is ``True``\n\n------------\nRequirements\n------------\n\nDjango 1.2 \n\n------------\nInstallation\n------------\n\nTo install the latest version:: \n\n pip install git+git://github.com/ikraftsoft/django-userswitch#egg=django-userswitch\n\nIt can also be installed from PyPI with ``pip`` or ``easy_install``::\n\n pip install django-userswitch\n easy_install install django-userswitch\n\n-------------\nSetup & Usage\n-------------\n\n\nAdd ``userswitch`` middleware to the ``MIDDLEWARE_CLASSES`` in settings.py after the default middlewares::\n\n MIDDLEWARE_CLASSES = (\n 'django.middleware.common.CommonMiddleware',\n 'django.contrib.sessions.middleware.SessionMiddleware',\n 'django.middleware.csrf.CsrfViewMiddleware',\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\n 'django.contrib.messages.middleware.MessageMiddleware',\n ...\n 'userswitch.middleware.UserSwitchMiddleware',\n )\n\n\nOptionally you can add ``USERSWITCH_OPTIONS`` dict to the settings.py::\n\n USERSWITCH_OPTIONS = {\n 'css_class': '', # CSS class to be added to the switcher widget. Default='userswitch'.\n 'css_inline': '', # Inline css for the switcher widget, if any\n 'content_types': (), # a tuple of content-type for which to render switcher widget. Default = ('text/html', 'application/xhtml+xml')\n 'auth_backend': '', # Custom auth backend if any. Default = 'django.contrib.auth.backends.ModelBackend'\n 'replace_text': '', # Text to replace with the widget, default add to end \"body\" tag.\n 'users': (), # List of usernames(as strings) to be shown in the switcher widget. If its empty, all users are loaded.\n 'force_on': False, # Turns on USERSWITCH even if DEBUG = False\n }\n\n\nNote: default value of ``css_inline`` option provides some basic absolute \npositioning. To change those either specify ``css_inline`` option\nmanually or override ``position``, ``top``, ``right`` in the class\nspecified in ``css_class`` with ``!important``.\n \n\nThat's All!", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/ikraftsoft/django-userswitch/tarball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ikraftsoft/django-userswitch", "keywords": null, "license": "New BSD License", "maintainer": null, "maintainer_email": null, "name": "django-userswitch", "package_url": "https://pypi.org/project/django-userswitch/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-userswitch/", "project_urls": { "Download": "https://github.com/ikraftsoft/django-userswitch/tarball/master", "Homepage": "https://github.com/ikraftsoft/django-userswitch" }, "release_url": "https://pypi.org/project/django-userswitch/0.2.2/", "requires_dist": null, "requires_python": null, "summary": "A quick 'n' dirty Django app for switching between different users while testing", "version": "0.2.2" }, "last_serial": 790965, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "363a92c74cd69e10bdd25849c54d63ab", "sha256": "eaf7bd8bd062fe55cb545e49e5ef494d0c67a22badd148e981bf7506fe1d9c06" }, "downloads": -1, "filename": "django-userswitch-0.1.tar.gz", "has_sig": false, "md5_digest": "363a92c74cd69e10bdd25849c54d63ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3292, "upload_time": "2011-01-12T10:57:43", "url": "https://files.pythonhosted.org/packages/2a/2a/6e17cfdd0e19eaec52e8ec6d7168325c06687b3dd0d812b82a6a20ec40b1/django-userswitch-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "9c66b5d9645ac24f878f111740aba04e", "sha256": "148a5ab9a0dec1629d50a0f4153b2c242f8b88801a67f7e861eced080332a87d" }, "downloads": -1, "filename": "django-userswitch-0.2.tar.gz", "has_sig": false, "md5_digest": "9c66b5d9645ac24f878f111740aba04e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3415, "upload_time": "2011-03-16T12:50:11", "url": "https://files.pythonhosted.org/packages/41/db/92287e081eb32a82f06b2672fe1f793d95c57c11d617393d0290b8a10039/django-userswitch-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "aff0c70c354625e54ad2aadbc7f68648", "sha256": "d868754fe41113cab5e06351f76b14db916e072b942ae3d1ec76663a97925ac6" }, "downloads": -1, "filename": "django-userswitch-0.2.1.tar.gz", "has_sig": false, "md5_digest": "aff0c70c354625e54ad2aadbc7f68648", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3482, "upload_time": "2011-03-21T08:53:17", "url": "https://files.pythonhosted.org/packages/f0/e9/b3db4d436da1f8dcc427d362774291bd7b077de266ca5626e84ad2a293ac/django-userswitch-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "07852ab53db9edfed2b9ae164cac4960", "sha256": "d29bc9a323c354bb64a3643f5519dc6729d5dff196da069cd51e15b32f8291ef" }, "downloads": -1, "filename": "django-userswitch-0.2.2.tar.gz", "has_sig": false, "md5_digest": "07852ab53db9edfed2b9ae164cac4960", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3484, "upload_time": "2011-03-22T11:49:35", "url": "https://files.pythonhosted.org/packages/6f/dd/24e768445cccff140f6ba77650554729899f473aa6e83331a2df043c6ffa/django-userswitch-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "07852ab53db9edfed2b9ae164cac4960", "sha256": "d29bc9a323c354bb64a3643f5519dc6729d5dff196da069cd51e15b32f8291ef" }, "downloads": -1, "filename": "django-userswitch-0.2.2.tar.gz", "has_sig": false, "md5_digest": "07852ab53db9edfed2b9ae164cac4960", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3484, "upload_time": "2011-03-22T11:49:35", "url": "https://files.pythonhosted.org/packages/6f/dd/24e768445cccff140f6ba77650554729899f473aa6e83331a2df043c6ffa/django-userswitch-0.2.2.tar.gz" } ] }