{ "info": { "author": "Sumit Chachra", "author_email": "sumit@tivix.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 'onchange_redirect_url': '/' # The url to redirect the user to onchange of user selection.\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-fork", "package_url": "https://pypi.org/project/django-userswitch-fork/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-userswitch-fork/", "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-fork/0.2.4/", "requires_dist": null, "requires_python": null, "summary": "A quick 'n' dirty Django app for switching between different users while testing", "version": "0.2.4" }, "last_serial": 790966, "releases": { "0.2.3": [ { "comment_text": "", "digests": { "md5": "446ca4b0285b8b95cab0a05360c5195d", "sha256": "b63fe4eaa0de58dccc1e4d96d18481a82ed848a224ec187e265e90411cba4b7b" }, "downloads": -1, "filename": "django-userswitch-fork-0.2.3.tar.gz", "has_sig": false, "md5_digest": "446ca4b0285b8b95cab0a05360c5195d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3540, "upload_time": "2013-04-10T00:59:39", "url": "https://files.pythonhosted.org/packages/5e/0a/e7aa4114602325e9cb354e1fce13fd90506bfe5d859d5a9cb99cc30203f7/django-userswitch-fork-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "db6a75303acd8a00b7bbea4fdf77a405", "sha256": "efc14c4df2ce2da0aabd6127bb1f9d9d28f43ad8e41c91ad94a9dc774b47f9d3" }, "downloads": -1, "filename": "django-userswitch-fork-0.2.4.tar.gz", "has_sig": false, "md5_digest": "db6a75303acd8a00b7bbea4fdf77a405", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3551, "upload_time": "2013-04-10T01:04:31", "url": "https://files.pythonhosted.org/packages/3f/dc/703ee033f098b837eddf6ddb40870963c255a313029bf14e756aa0f038f0/django-userswitch-fork-0.2.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "db6a75303acd8a00b7bbea4fdf77a405", "sha256": "efc14c4df2ce2da0aabd6127bb1f9d9d28f43ad8e41c91ad94a9dc774b47f9d3" }, "downloads": -1, "filename": "django-userswitch-fork-0.2.4.tar.gz", "has_sig": false, "md5_digest": "db6a75303acd8a00b7bbea4fdf77a405", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3551, "upload_time": "2013-04-10T01:04:31", "url": "https://files.pythonhosted.org/packages/3f/dc/703ee033f098b837eddf6ddb40870963c255a313029bf14e756aa0f038f0/django-userswitch-fork-0.2.4.tar.gz" } ] }