{ "info": { "author": "Ariel Nunez", "author_email": "ingenieroariel@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "\nUsing geonode-avatar\n===================\n\n\nBasics\n------\n\nTo integrate ``geonode-avatar`` with your site, there are relatively few things\nthat are required. A minimal integration can work like this:\n\n1. List this application in the ``INSTALLED_APPS`` portion of your settings\n file. Your settings file will look something like::\n\n INSTALLED_APPS = (\n # ...\n 'avatar',\n )\n\n2. Add the pagination urls to the end of your root urlconf. Your urlconf\n will look something like::\n\n urlpatterns = patterns('',\n # ...\n (r'^admin/(.*)', admin.site.root),\n (r'^avatar/', include('avatar.urls')),\n )\n\n3. Somewhere in your template navigation scheme, link to the change avatar\n page::\n\n Change your avatar\n\n4. Wherever you want to display an avatar for a user, first load the avatar\n template tags::\n\n {% load avatar_tags %}\n\n Then, use the ``avatar`` tag to display an avatar of a default size::\n\n {% avatar user %}\n\n Or specify a size (in pixels) explicitly::\n\n {% avatar user 65 %}\n\n5. Optionally customize ``avatar/change.html`` and\n ``avatar/confirm_delete.html`` to conform to your site's look and feel.\n\n\nViews\n-----\n\nThere are only two views for this application: one for changing a user's avatar,\nand another for deleting a user's avatar.\n\nChanging an avatar\n~~~~~~~~~~~~~~~~~~\n\nThe actual view function is located at ``avatar.views.change``, and this can\nbe referenced by the url name ``avatar_change``. It takes two keyword\narguments: ``extra_context`` and ``next_override``. If ``extra_context`` is\nprovided, that context will be placed into the template's context.\n\nIf ``next_override`` is provided, the user will be redirected to the specified\nURL after form submission. Otherwise the user will be redirected to the URL\nspecified in the ``next`` parameter in ``request.POST``. If ``request.POST``\nhas no ``next`` parameter, ``request.GET`` will be searched. If ``request.GET``\nhas no ``next`` parameter, the ``HTTP_REFERER`` header will be inspected. If\nthat header does not exist, the user will be redirected back to the current URL.\n\nDeleting an avatar\n~~~~~~~~~~~~~~~~~~\n\nThe actual view function is located at ``avatar.views.delete``, and this can be\nreferenced by the url name ``avatar_delete``. It takes the same two keyword\narguments as ``avatar.views.change`` and follows the same redirection rules\nas well.\n\n\nTemplate Tags\n-------------\n\nTo begin using these template tags, you must first load the tags into the\ntemplate rendering system:\n\n {% load avatar_tags %}\n\n``{% avatar_url user [size in pixels] %}``\n Renders the URL of the avatar for the given user. User can be either a\n ``django.contrib.auth.models.User`` object instance or a username.\n\n``{% avatar user [size in pixels] %}``\n Renders an HTML ``img`` tag for the given user for the specified size. User\n can be either a ``django.contrib.auth.models.User`` object instance or a\n username.\n\n``{% render_avatar avatar [size in pixels] %}``\n Given an actual ``avatar.models.Avatar`` object instance, renders an HTML\n ``img`` tag to represent that avatar at the requested size.\n\n\nGlobal Settings\n---------------\n\nThere are a number of settings available to easily customize the avatars that\nappear on the site. Listed below are those settings:\n\nAUTO_GENERATE_AVATAR_SIZES\n An iterable of integers representing the sizes of avatars to generate on\n upload. This can save rendering time later on if you pre-generate the\n resized versions. Defaults to ``(80,)``\n\nAVATAR_RESIZE_METHOD\n The method to use when resizing images, based on the options available in\n PIL. Defaults to ``Image.ANTIALIAS``.\n\nAVATAR_STORAGE_DIR\n The directory under ``MEDIA_ROOT`` to store the images. If using a\n non-filesystem storage device, this will simply be appended to the beginning\n of the file name.\n\nAVATAR_GRAVATAR_BACKUP\n A boolean determining whether to default to the Gravatar service if no\n ``Avatar`` instance is found in the system for the given user. Defaults to\n True.\n\nAVATAR_DEFAULT_URL\n The default URL to default to if ``AVATAR_GRAVATAR_BACKUP`` is set to False\n and there is no ``Avatar`` instance found in the system for the given user.\n\n\nManagement Commands\n-------------------\n\nThis application does include one management command: ``rebuild_avatars``. It\ntakes no arguments and, when run, re-renders all of the thumbnails for all of\nthe avatars for the pixel sizes specified in the ``AUTO_GENERATE_AVATAR_SIZES``\nsetting.\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/GeoNode/geonode-avatar/", "keywords": "avatar", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "geonode-avatar", "package_url": "https://pypi.org/project/geonode-avatar/", "platform": "", "project_url": "https://pypi.org/project/geonode-avatar/", "project_urls": { "Homepage": "http://github.com/GeoNode/geonode-avatar/" }, "release_url": "https://pypi.org/project/geonode-avatar/2.1.8/", "requires_dist": null, "requires_python": "", "summary": "A fork of django-avatar, for GeoNode", "version": "2.1.8" }, "last_serial": 3809642, "releases": { "2.1": [ { "comment_text": "", "digests": { "md5": "2d36673ba022875f439aa73aefe8b2c6", "sha256": "baeafec9736cb7e49678e1e9bee39e2672dc04a2f752a69c64c2649f1e29cd5a" }, "downloads": -1, "filename": "geonode-avatar-2.1.tar.gz", "has_sig": false, "md5_digest": "2d36673ba022875f439aa73aefe8b2c6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 21022, "upload_time": "2012-08-11T03:26:01", "url": "https://files.pythonhosted.org/packages/36/bc/2db785a48f1335c21a8fd7d3ee12674f251e8a424f9b3a07bbd789a8708e/geonode-avatar-2.1.tar.gz" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "f7243231e017fe37bf6ccbd145b81a57", "sha256": "52949f7d3cc089b29f39257390f06218adf47dbcbe7b9b5531a5b65fe2302691" }, "downloads": -1, "filename": "geonode-avatar-2.1.1.tar.gz", "has_sig": false, "md5_digest": "f7243231e017fe37bf6ccbd145b81a57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1571829, "upload_time": "2012-11-01T14:12:20", "url": "https://files.pythonhosted.org/packages/7e/1a/00eda382adfd5e1c7ce79a7330b17ffbc0afa48c04b7375e2992f45604f5/geonode-avatar-2.1.1.tar.gz" } ], "2.1.2": [ { "comment_text": "", "digests": { "md5": "2f34685fee868cd8958c0ec38f75ce0f", "sha256": "9a5c421d9cbc768c2ea26d0395d58c279269a09b0f739a5c6c4bc52570fab407" }, "downloads": -1, "filename": "geonode-avatar-2.1.2.tar.gz", "has_sig": false, "md5_digest": "2f34685fee868cd8958c0ec38f75ce0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1571793, "upload_time": "2014-05-19T08:19:10", "url": "https://files.pythonhosted.org/packages/cf/f3/bee815b6fc8bbc977c0419fcf9199680ac9c52df6583d6c42addb28a6fbb/geonode-avatar-2.1.2.tar.gz" } ], "2.1.3": [ { "comment_text": "", "digests": { "md5": "ff8b33d54b32e0684364b79c0f4e2202", "sha256": "2dcba0851b8463a56390e39b6126945c7a31bab6a961cc5aa4d37d7a151e2a65" }, "downloads": -1, "filename": "geonode-avatar-2.1.3.tar.gz", "has_sig": false, "md5_digest": "ff8b33d54b32e0684364b79c0f4e2202", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1571829, "upload_time": "2014-06-16T09:15:49", "url": "https://files.pythonhosted.org/packages/08/c4/c8941b3f253656efe486b634b85cfe2a9b0f596e14ccc50ac488a72ab8a1/geonode-avatar-2.1.3.tar.gz" } ], "2.1.4": [ { "comment_text": "", "digests": { "md5": "754aeafc5aa724376731abe472deedab", "sha256": "8de3fbf52e9c5f21039a42572430d7ec10d669fe90dd04583a2a64dfe88d70b9" }, "downloads": -1, "filename": "geonode-avatar-2.1.4.tar.gz", "has_sig": false, "md5_digest": "754aeafc5aa724376731abe472deedab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1571611, "upload_time": "2015-02-02T16:18:23", "url": "https://files.pythonhosted.org/packages/75/fb/95e9eea2e4d8a9894748ba8401eb2778ec4e5bc6a37b4895e2c455209c3a/geonode-avatar-2.1.4.tar.gz" } ], "2.1.5": [ { "comment_text": "", "digests": { "md5": "be9d1214e09cc8594637356a3922d125", "sha256": "7f8ce60ca80464d5474e36d5ae670b0bcf1411f21ac8594c95ec3145e0d27e4b" }, "downloads": -1, "filename": "geonode-avatar-2.1.5.tar.gz", "has_sig": false, "md5_digest": "be9d1214e09cc8594637356a3922d125", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1573320, "upload_time": "2015-02-04T09:10:28", "url": "https://files.pythonhosted.org/packages/f7/72/530fb1dca24a3d3d56858f160b9e0af54c438ff213c0119a07add0567e11/geonode-avatar-2.1.5.tar.gz" } ], "2.1.6": [ { "comment_text": "", "digests": { "md5": "4f0f1ce7824c1614bf9752c7cf40fcb9", "sha256": "744b97f7bdb9fd73518022d11d750396220ae0be2aa9713bf25dece10aa28ace" }, "downloads": -1, "filename": "geonode-avatar-2.1.6.tar.gz", "has_sig": false, "md5_digest": "4f0f1ce7824c1614bf9752c7cf40fcb9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1574038, "upload_time": "2016-07-08T07:39:35", "url": "https://files.pythonhosted.org/packages/45/55/f242b242873a6db6677a67ea0c805634f0b0361e1f92d2bc6d21a4b9bd2c/geonode-avatar-2.1.6.tar.gz" } ], "2.1.7": [ { "comment_text": "", "digests": { "md5": "4fc598ebd65e7c0cb955e3870d5dacf2", "sha256": "ae516826f916a239815ab28341c39d867ff22e41e01b9952cf5669c1e7e4d337" }, "downloads": -1, "filename": "geonode-avatar-2.1.7.tar.gz", "has_sig": false, "md5_digest": "4fc598ebd65e7c0cb955e3870d5dacf2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1572717, "upload_time": "2018-03-02T10:33:12", "url": "https://files.pythonhosted.org/packages/e6/41/924b579283ae30c8ca0e1c11830f15d4972f2e743d5c8ef8b275db2c3780/geonode-avatar-2.1.7.tar.gz" } ], "2.1.8": [ { "comment_text": "", "digests": { "md5": "a38e14bb1786862a002059b2a7f0f838", "sha256": "3e287244c1539063c73e764dc3a6049540a7eaca2facbf215bb494a8c06e9bf8" }, "downloads": -1, "filename": "geonode-avatar-2.1.8.tar.gz", "has_sig": false, "md5_digest": "a38e14bb1786862a002059b2a7f0f838", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1572667, "upload_time": "2018-04-26T09:38:28", "url": "https://files.pythonhosted.org/packages/13/bd/c918d31092a1e34abc8c46570b652f1549d091605a2a15d10f0112030e1e/geonode-avatar-2.1.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a38e14bb1786862a002059b2a7f0f838", "sha256": "3e287244c1539063c73e764dc3a6049540a7eaca2facbf215bb494a8c06e9bf8" }, "downloads": -1, "filename": "geonode-avatar-2.1.8.tar.gz", "has_sig": false, "md5_digest": "a38e14bb1786862a002059b2a7f0f838", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1572667, "upload_time": "2018-04-26T09:38:28", "url": "https://files.pythonhosted.org/packages/13/bd/c918d31092a1e34abc8c46570b652f1549d091605a2a15d10f0112030e1e/geonode-avatar-2.1.8.tar.gz" } ] }