{ "info": { "author": "Alessandro Pisa", "author_email": "alessandro.pisa@gmail.com", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "License :: OSI Approved :: GNU General Public License (GPL)", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7" ], "description": "==========================\nplonetrick.csrfworkarounds\n==========================\n\nLinks:\n\n* `Source code @ GitHub `_\n* `Releases @ PyPI `_\n* TODO: `Continuous Integration @ Travis-CI `_\n\nHow it works\n============\n\nThis package contains workarounds for legacy code that contains bugs\nthat appear evident after applying the plone4.csrffixes patch.\n\n\nUsage\n=====\n\nAdd ``plonetrick.csrfworkarounds`` to the list of eggs in your buildout,\nrun buildout and restart Plone.\n\nDisable plone CSRF check in page templates\n-------------------------------------------\n\nOne of the canonical way to disable the CSRF protection\nis using this code snippet::\n\n alsoProvides(\n self.request,\n IDisableCSRFProtection,\n )\n\nThis solution is better than the workaround provided by this package.\nThe workaround consist in customizing the template\nadding a call to ``here/disable_csrf_protection/disable``, e.g.::\n\n \n\nDisable plone CSRF transform when getting TinyMCE configuration\n---------------------------------------------------------------\n\nSee:\n\n- https://github.com/plone/Products.TinyMCE/issues/125\n\nThere is no easy fix with this,\nso I added the workaround view ``tinymce-jsonconfiguration-csrf-free``\nthat wraps the original one adding the requested header.\n\nExample usage:\n\n.. code-block:: javascript\n\n jQuery.ajax({\n url: portal_url + '/@@tinymce-jsonconfiguration-csrf-free?field=' + encodeURI(element.attr('name')),\n success: function(data) {\n element.attr({'data-mce-config': data});\n element.addClass('mce_editable');\n element.addClass('pat-tinymce');\n window.initTinyMCE(element.parent(), {});\n }\n });\n\n\n:orphan:\n\nChangelog\n=========\n\n\n0.9.0 (2015-11-25)\n------------------\n\n- Initial release.\n [ale-rt]", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/plonetrick.csrfworkarounds", "keywords": "Plone", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "plonetrick.csrfworkarounds", "package_url": "https://pypi.org/project/plonetrick.csrfworkarounds/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/plonetrick.csrfworkarounds/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/plonetrick.csrfworkarounds" }, "release_url": "https://pypi.org/project/plonetrick.csrfworkarounds/0.9.0/", "requires_dist": null, "requires_python": null, "summary": "plonetrick.csrfworkarounds", "version": "0.9.0" }, "last_serial": 2341059, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "5ddd001b72449fbf982f9afbf8d3c3e8", "sha256": "00512448872d15b9894466a161131c8acdc50437726f20c0edfb7bc8767ee45e" }, "downloads": -1, "filename": "plonetrick.csrfworkarounds-0.9.0.tar.gz", "has_sig": false, "md5_digest": "5ddd001b72449fbf982f9afbf8d3c3e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9202, "upload_time": "2015-11-25T09:27:15", "url": "https://files.pythonhosted.org/packages/d0/73/cadf232adb326e3266aa2d27318b24732e6cb1285878301e1a1b6e129e3d/plonetrick.csrfworkarounds-0.9.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5ddd001b72449fbf982f9afbf8d3c3e8", "sha256": "00512448872d15b9894466a161131c8acdc50437726f20c0edfb7bc8767ee45e" }, "downloads": -1, "filename": "plonetrick.csrfworkarounds-0.9.0.tar.gz", "has_sig": false, "md5_digest": "5ddd001b72449fbf982f9afbf8d3c3e8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9202, "upload_time": "2015-11-25T09:27:15", "url": "https://files.pythonhosted.org/packages/d0/73/cadf232adb326e3266aa2d27318b24732e6cb1285878301e1a1b6e129e3d/plonetrick.csrfworkarounds-0.9.0.tar.gz" } ] }