{ "info": { "author": "Maykin Media", "author_email": "support@maykinmedia.nl", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Django", "Framework :: Django :: 1.11", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Intended Audience :: Developers", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: Unix", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "\nDjango CMS Export Page\n=================================================\n\n:Version: 0.1.0\n:Source: https://bitbucket.org/maykinmedia/djangocms-export-page\n:Keywords: ``django`` ``cms`` ``export`` ``docx``\n:PythonVersion: 3.4\n\n|build-status| |requirements| |coverage|\n\n|python-versions| |django-versions| |pypi-version|\n\nExport a Django CMS page or a model view to a DOCX document\n\n.. contents::\n\n.. section-numbering::\n\nFeatures\n========\n\n* Adds a menu entry in the CMS toolbar to export the current page\n* Ability to export a custom model, including placeholder fields\n\n.. image:: img/page-export-menu.png\n\nInstallation\n============\n\nRequirements\n------------\n\n* Python 3.4 or above\n* setuptools 30.3.0 or above\n* Django 1.11 or above\n* Django CMS 3.4.6 or above\n\n\nInstall\n-------\n\n.. code-block:: bash\n\n pip install djangocms-export-page\n\n\nUsage\n=====\n\nIn your Django settings:\n\n.. code-block:: python\n\n INSTALLED_APPS = [\n ...\n 'djangocms_export_page',\n ...\n ]\n\n\n\nCMS Page\n--------\n\nCMS Page don't need any extra configuration to work.\n\nIf a Plugin has a reverse ForeignKey that would behave like children,\nadd the following to the CMSPlugin model class:\n\n.. code-block:: python\n\n _export_page = {\n 'children': 'items'\n }\n\n @property\n def items(self):\n return self.frequentlyaskedquestion_set.all()\n\nwhere `items` is a iterable attribute of the model class.\n\nAnd for on the ForeignKey Django model class:\n\n.. code-block:: python\n\n _export_page = {\n 'fields': ['name', ... ]\n }\n\nIf you want to export the contents of a ForeignKey or OneToOneField inside the regular model you can use\n`_export_page_field_names`. Now these fields will be put in the some level as the plugin fields.\n\n.. code-block:: python\n\n _export_page_field_names = ['number', 'title', 'lead', 'display_date', 'date', 'location']\n\n\nDjango Model\n------------\n\nIf you need to export a Django model included in a AppHook,\nadd the following to the model class:\n\n.. code-block:: python\n\n _export_page = {\n 'sections': [{\n 'name': 'Meta',\n 'fields': ['title', ... ]\n }, {\n 'name': 'Body',\n 'fields': ['content']\n }],\n }\n\nIt's better to put the PlaceholderField (here `content`) in a separate section.\n\n\nStatic Placeholders\n-------------------\n\nIf you also want to export the static placeholders of a page, some extra configuration\nis required. There is a setting called `EXPORT_STATIC_PLACEHOLDERS`.\n\n.. code-block:: python\n\n EXPORT_STATIC_PLACEHOLDERS = {\n 'template_name': ['static_placeholder_code']\n }\n\nSo with the cms settings it will look like this:\n\n.. code-block:: python\n\n # test.html\n
\n {% static_placeholder 'test-placeholder' %}\n
\n\n # settings.py\n CMS_TEMPLATES = [\n ('test.html', _('Test page')),\n ]\n\n EXPORT_STATIC_PLACEHOLDERS = {\n 'test.html': ['test-placeholder']\n }\n\n.. |build-status| image:: https://travis-ci.org/maykinmedia/djangocms-export-page.svg?branch=develop\n :target: https://travis-ci.org/maykinmedia/djangocms-export-page\n\n.. |requirements| image:: https://requires.io/github/maykinmedia/djangocms-export-page/requirements.svg?branch=develop\n :target: https://requires.io/github/maykinmedia/djangocms-export-page/requirements/?branch=develop\n :alt: Requirements status\n\n.. |coverage| image:: https://codecov.io/gh/maykinmedia/djangocms-export-page/branch/develop/graph/badge.svg\n :target: https://codecov.io/gh/maykinmedia/djangocms-export-page\n :alt: Coverage status\n\n.. |python-versions| image:: https://img.shields.io/pypi/pyversions/djangocms-export-page.svg\n\n.. |django-versions| image:: https://img.shields.io/pypi/djversions/djangocms-export-page.svg\n\n.. |pypi-version| image:: https://img.shields.io/pypi/v/djangocms-export-page.svg\n :target: https://pypi.org/project/djangocms-export-page/\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/maykinmedia/djangocms-export-page", "keywords": "django cms export docx", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "djangocms-export-page", "package_url": "https://pypi.org/project/djangocms-export-page/", "platform": "", "project_url": "https://pypi.org/project/djangocms-export-page/", "project_urls": { "Homepage": "https://github.com/maykinmedia/djangocms-export-page" }, "release_url": "https://pypi.org/project/djangocms-export-page/0.1.5/", "requires_dist": [ "django-cms", "djangocms-page-meta", "python-docx", "pytest-cov; extra == 'coverage'", "sphinx; extra == 'docs'", "sphinx-rtd-theme; extra == 'docs'", "flake8; extra == 'pep8'", "zest.releaser; extra == 'release'", "pytest; extra == 'tests'", "pytest-django; extra == 'tests'", "tox; extra == 'tests'", "isort; extra == 'tests'" ], "requires_python": "", "summary": "Export a Django CMS page or a model view to a DOCX document", "version": "0.1.5" }, "last_serial": 4359365, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "24da7155ef011bbd34bb4d6aefe4a8d2", "sha256": "e910061ebc514e5561ec945fbbca6ade2ecb4544945c244d99029b3ef8951ba2" }, "downloads": -1, "filename": "djangocms_export_page-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "24da7155ef011bbd34bb4d6aefe4a8d2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13090, "upload_time": "2018-08-30T10:15:36", "url": "https://files.pythonhosted.org/packages/ff/ec/a8697077630660771c24ca4621b70cbb79f38194eb7706a1bf583ebb7074/djangocms_export_page-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dbbb57913df5e30800e976f1ac5567d6", "sha256": "cee0b0bb41816f35e145b57aeac57dfc51670242ca50e7b306868220c3906830" }, "downloads": -1, "filename": "djangocms-export-page-0.1.0.tar.gz", "has_sig": false, "md5_digest": "dbbb57913df5e30800e976f1ac5567d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12234, "upload_time": "2018-08-30T10:15:38", "url": "https://files.pythonhosted.org/packages/74/9d/287fa119a74295f5b72a581a676eb7f4c8b2ecd5fff53302c29b24894b2a/djangocms-export-page-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "3f86493c20763379ae4ffc06fbc1a277", "sha256": "0f72270caf9f49abf65e876ec56a8c1512b251ab9805d9f801e79f7d5bfea318" }, "downloads": -1, "filename": "djangocms_export_page-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3f86493c20763379ae4ffc06fbc1a277", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 12874, "upload_time": "2018-10-05T13:25:21", "url": "https://files.pythonhosted.org/packages/4f/7b/cfa2835842e03e26d6e1d157c9a6a39dd89ba4e166c86e6c8a1bd86c8289/djangocms_export_page-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d615a05e779c08f7e190c7f178add4a8", "sha256": "af8a9b3b8003a043f6914713682a2950b8e3b4bddddcc81c02fcb61da3cbcdc7" }, "downloads": -1, "filename": "djangocms-export-page-0.1.1.tar.gz", "has_sig": false, "md5_digest": "d615a05e779c08f7e190c7f178add4a8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39225, "upload_time": "2018-10-05T09:51:23", "url": "https://files.pythonhosted.org/packages/58/32/74018c502e94acacea8f01e2df9968377fdb32687e52a7170fa7a9460baa/djangocms-export-page-0.1.1.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "061c3e343b2b3b1079f4ed7d0963ddf1", "sha256": "0514be22a7d554a72cd575db79bc7a606d1a0d765cdf975d3c4ae0ca28a04240" }, "downloads": -1, "filename": "djangocms_export_page-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "061c3e343b2b3b1079f4ed7d0963ddf1", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13195, "upload_time": "2018-10-09T08:58:42", "url": "https://files.pythonhosted.org/packages/ce/db/e72136b4671e0aabc8ead24bbedd5e5348c8ca82d0b2769d083689bf7eb0/djangocms_export_page-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "15ccc6a053f21b41ec9e3e455ea3243e", "sha256": "06d86e1e9680d4f9b2a3fe4212074009dd72053efa438dcc5626a7c82376600d" }, "downloads": -1, "filename": "djangocms-export-page-0.1.3.tar.gz", "has_sig": false, "md5_digest": "15ccc6a053f21b41ec9e3e455ea3243e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39768, "upload_time": "2018-10-09T08:58:44", "url": "https://files.pythonhosted.org/packages/fe/c3/f2c4a390c054e7134642b2a6080f18b63d9882f92a303eb3f86a6ca94ad5/djangocms-export-page-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "d9fb9da124f0972310464d8901e6e59a", "sha256": "2a3abfa98df74c18e810d6048df0c91f513a2eec152450a86121f4f9cda99d5d" }, "downloads": -1, "filename": "djangocms_export_page-0.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d9fb9da124f0972310464d8901e6e59a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13222, "upload_time": "2018-10-10T09:23:17", "url": "https://files.pythonhosted.org/packages/bf/ff/78e28b021f5afbb83d16a17bff52fc6224aa365bcc484db4de4b41e13f09/djangocms_export_page-0.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "23092ede9e1c89dcb8a00016a4aaa673", "sha256": "dad544aad4bbb24936a1b24e0703ce539c7bcdd167bba12eedad45b44a053621" }, "downloads": -1, "filename": "djangocms-export-page-0.1.4.tar.gz", "has_sig": false, "md5_digest": "23092ede9e1c89dcb8a00016a4aaa673", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39798, "upload_time": "2018-10-10T09:23:18", "url": "https://files.pythonhosted.org/packages/85/60/66278e0b859115f0d93c378a9e15358265a918962d1940c5a0a37bf9e3ab/djangocms-export-page-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "737d3924927a56ab3deed06171d2c9d6", "sha256": "8a353f369c06f802f2af5b757c4ed38cbd55f9cdb8ef09b4ebca428112f3af44" }, "downloads": -1, "filename": "djangocms_export_page-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "737d3924927a56ab3deed06171d2c9d6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13244, "upload_time": "2018-10-10T09:43:23", "url": "https://files.pythonhosted.org/packages/52/64/b7b05db90ad45b799b21578ef9ac0cbf748eb65c1f383f51d36feeab17c7/djangocms_export_page-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b9cc4f1b76a6f30bc344668b43a627eb", "sha256": "ae07763ce3a1ed0ed2d9fa331d566f03e741b52feda9b0755bf764a28f114fd5" }, "downloads": -1, "filename": "djangocms-export-page-0.1.5.tar.gz", "has_sig": false, "md5_digest": "b9cc4f1b76a6f30bc344668b43a627eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39831, "upload_time": "2018-10-10T09:43:24", "url": "https://files.pythonhosted.org/packages/45/7d/594cf98b0fcdbb81f62460825b896af9f3e19f75a5c67dde277deef7c8cd/djangocms-export-page-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "737d3924927a56ab3deed06171d2c9d6", "sha256": "8a353f369c06f802f2af5b757c4ed38cbd55f9cdb8ef09b4ebca428112f3af44" }, "downloads": -1, "filename": "djangocms_export_page-0.1.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "737d3924927a56ab3deed06171d2c9d6", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 13244, "upload_time": "2018-10-10T09:43:23", "url": "https://files.pythonhosted.org/packages/52/64/b7b05db90ad45b799b21578ef9ac0cbf748eb65c1f383f51d36feeab17c7/djangocms_export_page-0.1.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b9cc4f1b76a6f30bc344668b43a627eb", "sha256": "ae07763ce3a1ed0ed2d9fa331d566f03e741b52feda9b0755bf764a28f114fd5" }, "downloads": -1, "filename": "djangocms-export-page-0.1.5.tar.gz", "has_sig": false, "md5_digest": "b9cc4f1b76a6f30bc344668b43a627eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 39831, "upload_time": "2018-10-10T09:43:24", "url": "https://files.pythonhosted.org/packages/45/7d/594cf98b0fcdbb81f62460825b896af9f3e19f75a5c67dde277deef7c8cd/djangocms-export-page-0.1.5.tar.gz" } ] }