{ "info": { "author": "Karol Majta", "author_email": "karolmajta@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python :: 2.7", "Topic :: Internet" ], "description": "=================\ndjango-transplant\n=================\n\n--------\nOverview\n--------\n\nDjango-transplant is an app for performing easy merges of django user\naccounts. It should play nicely with any third party social authentication\nbackend.\n\n------------\nRequirements\n------------\n\nDjango-transplant requires:\n\n- Django 1.2.5 or higher.\n\nIf you plan to develop, or run the test suite you should also install:\n\n- Mock\n \nThis dependency **will not** be installed automatically via pip.\n\n----------\nInstalling\n----------\n\nTo install with pip into site-packages issue::\n\n\tpip install django-transplant\n\nTo install with pip into src folder (as git repo) issue::\n\n\tpip install -e \\\n\tgit+http://github.com/lolek09/django-transplant#egg=django-transplant\n\n-------------\nConfiguration\n-------------\n\nAdd ``'transplant'`` to your ``INSTALLED_APPS``. If you plan to run the test\nsuite you should also add ``'transplant.tests'``::\n\n\tINSTALLED_APPS += (\n\t\t'transplant',\n\t\t'transplant.tests', # this is optional\n\t)\n\nFor your convenience django-transplant provides a default view for performing\nUser merges. You can use it like any FormView, and it's name is\n``transplant_merge``. It expects a default template in 'transplant/merge.html'.\n\nTo hook it up just add it to your ``urlconf`` at any URL::\n\n\turplatterns = patterns('',\n\t\t...\n\t\turl(r'^accounts/merge/$', include('transplant.urls')),\n\t\t...\n\t)\n\nYou should be now able to get the merge form and submit it, but it will have\nno effect. To utilize default merges you must set ``TRANSPLANT_OPERATIONS``\nin your settings.py::\n\n\tTRANSPLANT_OPERATIONS = (\n\t (\n\t \t'transplant.tests.models.CustomProfile',\n\t \t'transplant.surgeons.DefaultSurgeon',\n\t \t{}\n\t ),\n\t (\n\t 'transplant.tests.models.Item',\n\t 'transplant.tests.surgeons.DefaultSurgeon',\n\t {'user_field': 'owner'}\n\t ),\n\t (\n\t 'transplant.tests.models.Message',\n\t 'transplant.tests.surgeons.DefaultSurgeon',\n\t {'manager': 'unread'}\n\t ),\n\t)\n\n``TRANSPLANT_OPERATIONS`` consists of triples, each one of them specifies:\n\n1. Path to model class to be merged.\n2. Path to ``Surgeon`` class to be used during the merge.\n3. Extra arguments.\n\nCurrently supported extra arguments are:\n\n- ``user_field`` - name of the user field that will be used by the Surgeon\n during the merge (defaults to 'user').\n- ``manager`` - name of Manager used during the merge. In the example above\n only messages accessible via the 'unread' manager will be merged.\n \nYou may be happy with the behavior of ``DefaultSurgeon`` which is:\n\n- set field given as 'user_field' to the user that performs the merge\n- call save() on each entity (so that all signals are triggered)\n- set the is_active to False on the user that is merged\n\nIf you want additional functionality consult the docs.\n\n-------------\nDocumentation\n-------------\n\nDocumentation is available at\n`http://django-transplant.readthedocs.org/ `_\n\n---------\nChangelog\n---------\n\n-----\n0.0.2\n-----\n\n - Addidional Surgeon class BatchSurgeon pefrorming batch updates\n - Added UserMergeForm used by default by provided view\n\n-----\n0.0.1\n-----\n\n - Surgery class\n - Surgeon classes\n - NopSurgeon class that does basically nothing\n - DefaultSurgeon class for default merging behavior\n - Default view provide for convenience\n - Urls provided for conveniene", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lolek09/django-transplant", "keywords": "django,user,account,merge", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-transplant", "package_url": "https://pypi.org/project/django-transplant/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-transplant/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/lolek09/django-transplant" }, "release_url": "https://pypi.org/project/django-transplant/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "Automated merges of User accounts.", "version": "0.0.2" }, "last_serial": 790903, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "6826c27425ece4e1d4a83e2b45df9dc5", "sha256": "648f5cb9e9708bce623a990857ee550b36b6b323046602083a36d31983aa109e" }, "downloads": -1, "filename": "django-transplant-0.0.1.tar.gz", "has_sig": false, "md5_digest": "6826c27425ece4e1d4a83e2b45df9dc5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8971, "upload_time": "2012-06-15T20:53:52", "url": "https://files.pythonhosted.org/packages/91/ec/9d4034a95726a8ba67d6e982c81948a46e71f8d782f1ab7cf59397f66a13/django-transplant-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "f776da154a79e352f8e0fdd85121fbf5", "sha256": "59b2e805af0e152dd36e10a8a37f6835ccc04eeb828c004162926bc7f2fa3b63" }, "downloads": -1, "filename": "django-transplant-0.0.2.tar.gz", "has_sig": false, "md5_digest": "f776da154a79e352f8e0fdd85121fbf5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9401, "upload_time": "2012-06-21T21:28:12", "url": "https://files.pythonhosted.org/packages/fe/f6/d80bb8373eb598e1425a6199a081bba4ecbff883bce00ecd00e91f10bb01/django-transplant-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f776da154a79e352f8e0fdd85121fbf5", "sha256": "59b2e805af0e152dd36e10a8a37f6835ccc04eeb828c004162926bc7f2fa3b63" }, "downloads": -1, "filename": "django-transplant-0.0.2.tar.gz", "has_sig": false, "md5_digest": "f776da154a79e352f8e0fdd85121fbf5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9401, "upload_time": "2012-06-21T21:28:12", "url": "https://files.pythonhosted.org/packages/fe/f6/d80bb8373eb598e1425a6199a081bba4ecbff883bce00ecd00e91f10bb01/django-transplant-0.0.2.tar.gz" } ] }