{ "info": { "author": "Alexander Ivanov", "author_email": "alexander.ivanov@redsolution.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Natural Language :: English", "Natural Language :: Russian", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Site Management" ], "description": "=========================\ndjango-tinymce-attachment\n=========================\n\ndjango-tinymce-attachment.\n\nInstallation:\n=============\n\n1. Put ``attachment`` as LAST item to your ``INSTALLED_APPS`` in your ``settings.py`` within your Django project.\n\n2. Sync your database ::\n\n ./manage.py syncdb\n\nUsage:\n======\n\nIn settings.py:\n---------------\n\nSpecify Models for which you`d like to add images and files :: \n \n ATTACHMENT_FOR_MODELS = [\n '.models.',\n ]\n\nSpecify Model to be listed in link-list :: \n \n ATTACHMENT_LINK_MODELS = [\n '.models.',\n ]\n\nDisable image grouping (enabled by default) ::\n\n GROUP_IMAGES = False\n \nFor objects listed in link-list these attributes will be used:\n\n- ``get_absolute_url()`` to retrieve url.\n- ``__unicode()__`` to retrieve verbose name.\n\nIn urls.py:\n-----------\n\nAdd attachment to urls.py BEFORE ``admin/`` ::\n\n (r'^', include('attachment.urls')), # Must be placed before admin/\n\n\nExample:\n========\n\n``settings.py`` ::\n\n INSTALLED_APPS = (\n ...\n 'attachment',\n )\n \n ATTACHMENT_FOR_MODELS = [\n 'item.models.Item',\n ]\n\n ATTACHMENT_LINK_MODELS = [\n 'news.models.News',\n ]\n \n TINYMCE_DEFAULT_CONFIG = {\n 'external_image_list_url': 'images/',\n 'external_link_list_url': 'links/',\n }\n \n``urls.py`` ::\n\n urlpatterns += patterns('',\n (r'^', include('attachment.urls')), # Must be placed before admin/\n (r'^admin/', include(admin.site.urls)),\n )\n \nNow you can attach images and files to Item object.\nAfter you will save Item-object in TinyMCE editor for this page will be available:\n\n- attached images in list of images.\n- attached files in list of links.\n- all News objects in list of links.\n\nHere are screenshots that demonstrates attachment work:\n\n* |Link list| - link lists\n* |Image list| - image lists\n* |Attached files| - attached files\n\nChangelog:\n----------\n\n* 0.5.0 - Image and file title of any size\n* 0.4.1 - ``get_image_groups`` tag returns a sorted dict\n* 0.4.0 - Grouping images by new \"group\" field enabled.\n* 0.3.0 - Ordering by new \"position\" field enabled.\n* 0.2.0 - Add field \"title\" for models AttachmentFile, AttachmentImage\n\nClassifiers:\n-------------\n\n`Content plugins`_\n\n.. _`Content plugins`: http://www.redsolutioncms.org/classifiers/content\n.. |Link list| image:: http://github.com/redsolution/django-tinymce-attachment/raw/0.1.0/doc/link-list.png\n.. |Image list| image:: http://github.com/redsolution/django-tinymce-attachment/raw/0.1.0/doc/image-list.png\n.. |Attached files| image:: http://github.com/redsolution/django-tinymce-attachment/raw/0.1.0/doc/attachments.png", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "UNKNOWN", "keywords": "django tinymce attachment", "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "redsolutioncms.django-tinymce-attachment", "package_url": "https://pypi.org/project/redsolutioncms.django-tinymce-attachment/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/redsolutioncms.django-tinymce-attachment/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/redsolutioncms.django-tinymce-attachment/0.5.0/", "requires_dist": null, "requires_python": null, "summary": "Allows to attach files and images for any objects, specified in configuration.\nIf you use TinyMCE to edit object content, this module makes for you links to \nfiles in hyperlink select box and list of images in image select box.", "version": "0.5.0" }, "last_serial": 872592, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "dacda91e8d4118edcd950f7a3b5328f0", "sha256": "a2a352736c6c29d3d09976cde4c6c1934f15c2323a0c9c961d0c6ed38f54d844" }, "downloads": -1, "filename": "redsolutioncms.django-tinymce-attachment-0.1.0.tar.gz", "has_sig": false, "md5_digest": "dacda91e8d4118edcd950f7a3b5328f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8872, "upload_time": "2010-10-22T20:18:54", "url": "https://files.pythonhosted.org/packages/cc/68/8f5d3a0ad60ab074ca3ddd098904bf0cbb5ee2621e2a94b12dffa617224f/redsolutioncms.django-tinymce-attachment-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "e3f226335a5fb0bf2720c7cf635d2285", "sha256": "e8f2f33b573f0a25f255c512e6c30bb3a2dff9f7b692f33259fa35370b06f5bc" }, "downloads": -1, "filename": "redsolutioncms.django-tinymce-attachment-0.2.0.tar.gz", "has_sig": false, "md5_digest": "e3f226335a5fb0bf2720c7cf635d2285", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18889, "upload_time": "2011-09-02T11:53:26", "url": "https://files.pythonhosted.org/packages/8b/53/a2a0c50e61b96d74a20fc82b88a26d4c3e3e7957c16ec401b030c4785e86/redsolutioncms.django-tinymce-attachment-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "8606468f169f94681cf8c81afb169d3f", "sha256": "7d9b2672c5a0649a7b042fafc2f90ea48cbe0ccd87d5a6ed5ae485a1c1a4177b" }, "downloads": -1, "filename": "redsolutioncms.django-tinymce-attachment-0.3.0.tar.gz", "has_sig": false, "md5_digest": "8606468f169f94681cf8c81afb169d3f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9328, "upload_time": "2011-09-29T15:45:19", "url": "https://files.pythonhosted.org/packages/01/9a/2b45a34c5d3ab1c9c7b5ce28ab28882c8234a1b34de7e2685de395ec164e/redsolutioncms.django-tinymce-attachment-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "abf32e3035d5398a8cd5cde75938adc1", "sha256": "fe9a803d74d7e94c62a4e9cd0bef53913855b247dcc0169115017f68e6e7be9f" }, "downloads": -1, "filename": "redsolutioncms.django-tinymce-attachment-0.3.1.tar.gz", "has_sig": false, "md5_digest": "abf32e3035d5398a8cd5cde75938adc1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9631, "upload_time": "2012-06-01T19:06:37", "url": "https://files.pythonhosted.org/packages/58/88/0ab7ff88ebad7b1ef0fd847422c796cf38d1f0df8829e1f65867811d2e2c/redsolutioncms.django-tinymce-attachment-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "9db1bfe4144b8f75526db90d2c325c12", "sha256": "dc94bc53a3e31cd5843a0504f0f528736b280d10f8eab9a6118a9391416ee724" }, "downloads": -1, "filename": "redsolutioncms.django-tinymce-attachment-0.4.0.tar.gz", "has_sig": false, "md5_digest": "9db1bfe4144b8f75526db90d2c325c12", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10477, "upload_time": "2012-09-26T12:27:19", "url": "https://files.pythonhosted.org/packages/d4/35/7671c3df0f6112c75365705f8b621e22ff913960d88cf588641ed3cb09e5/redsolutioncms.django-tinymce-attachment-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "96d4c0086d80c38c013e5e06e34573c0", "sha256": "9841ec61e255f9914cacce45d3897bb969c155ebe0fc6d38a5e710bd7984e6b0" }, "downloads": -1, "filename": "redsolutioncms.django-tinymce-attachment-0.4.1.tar.gz", "has_sig": false, "md5_digest": "96d4c0086d80c38c013e5e06e34573c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10504, "upload_time": "2013-05-22T08:26:33", "url": "https://files.pythonhosted.org/packages/5f/c4/0b41573e6086c6e709155649ab4f1ca4e048421620620696b10ebcb4ac80/redsolutioncms.django-tinymce-attachment-0.4.1.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "9c9a7cd89aa0f1d57cbd526fe50ae3b9", "sha256": "c9c818955c15e355a3d0471ba38f8a572ef3a48d0f8b82120a030e7cf5b95963" }, "downloads": -1, "filename": "redsolutioncms.django-tinymce-attachment-0.5.0.tar.gz", "has_sig": false, "md5_digest": "9c9a7cd89aa0f1d57cbd526fe50ae3b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10732, "upload_time": "2013-09-24T09:42:41", "url": "https://files.pythonhosted.org/packages/84/a4/1d8b3ae48bdee3082e65a5be768f6a15c18bfd9f55e3bc6852e92fbc1ae6/redsolutioncms.django-tinymce-attachment-0.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9c9a7cd89aa0f1d57cbd526fe50ae3b9", "sha256": "c9c818955c15e355a3d0471ba38f8a572ef3a48d0f8b82120a030e7cf5b95963" }, "downloads": -1, "filename": "redsolutioncms.django-tinymce-attachment-0.5.0.tar.gz", "has_sig": false, "md5_digest": "9c9a7cd89aa0f1d57cbd526fe50ae3b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10732, "upload_time": "2013-09-24T09:42:41", "url": "https://files.pythonhosted.org/packages/84/a4/1d8b3ae48bdee3082e65a5be768f6a15c18bfd9f55e3bc6852e92fbc1ae6/redsolutioncms.django-tinymce-attachment-0.5.0.tar.gz" } ] }