{ "info": { "author": "Nathan Cahill", "author_email": "nathan@nathancahill.com", "bugtrack_url": null, "classifiers": [], "description": "Flask-Edits\n~~~~~~~~~~~\n\n\"Can't you just, rewrite it to sound more *edgy?*\"\n\nClients blowing up your phone to change some copy on the ``/about``\npage?\n\nEnter **Flask-Edits**. Mark sections of your templates with\n``{% editable %}`` and their content is exposed in a slick admin panel.\nNever worry about tweaking copy again.\n\n.. figure:: http://i.imgur.com/kgAlUAV.png\n :alt: Screenshot\n\n Screenshot\nInstallation\n^^^^^^^^^^^^\n\n::\n\n $ pip install flask-edits\n\nUsage\n^^^^^\n\n::\n\n from flask.ext.edits import Edits\n\n app = Flask(__name__)\n edits = Edits(app)\n\nAll edits are saved to the disk as JSON, so configure a path to save the\nedits. Edits can be commited to version control along with the rest of\nthe app.\n\n::\n\n import os.path as op\n app.config['EDITS_PATH'] = op.join(op.dirname(op.abspath(__file__)), 'edits.json')\n\nMark sections of your Jinja templates as editable. The section name is\nrequired, it's used as the section label when editing and the key that\nthe edits are stored under.\n\n::\n\n {% editable 'Section name' %}\n Python is a programming language that lets you work quickly and integrate systems more effectively.\n {% endeditable %}\n\n**Important:**\n\nThere is no automatic detection of editable sections (yet). You have to\nvisit the URL that renders the template to register it as editable. It\nwill not show up in the admin panel until it has been rendered with\n``render_template``.\n\nAdmin\n^^^^^\n\nThe Flask-Edits admin view is exposed by default at ``/edits``. The base\nURL can be changed in the configuration:\n\n::\n\n app.config['EDITS_URL'] = '/edits'\n\n**Note on security:**\n\nLike Flask-Admin, Flask-Edits does not make any assumptions about the\nauthentication system you might be using. So, by default, the admin\ninterface is completely open. Protect it behind basic auth or another\nform of authentication.\n\nEditing\n^^^^^^^\n\nAll pages that have registered editable sections are available to edit\nin the interface. At this time, only static HTML is supported. Support\nfor Jinja2 is on the roadmap.\n\nThe `Summernote `__ HTML editor\nis included but not used by default. To enable it:\n\n::\n\n app.config['EDITS_SUMMERNOTE'] = True\n\nWhen a page is saved it instantly updates the Jinja context and writes\nto the JSON file on the server.\n\nWithin a page, multiple sections with the same name will only show up\nonce in the admin panel, but the edits will be applied to each section.\n\nClearing a section will revert it to the original content in the\ntemplate.\n\nPreviews\n^^^^^^^^\n\nPreview mode is on by default. Edits will not show up on pages unless\n``?preview=true`` is passed in the URL. This allows for easy editing\nbefore content is live. Toggle the preview mode in the admin panel. If\npreviews are turned off, edits become live as they are saved.\n\nPreview mode can be toggled in the configuration. To turn off previews\nby default:\n\n::\n\n app.config['EDITS_PREVIEW'] = False\n\nTurning off previews is recommended for use in production.\n\nRoadmap\n^^^^^^^\n\n- Automatically register editable sections\n- Jinja2 content with context evaluation\n- Multiple database backends\n- In-place page editing", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/nathancahill/flask-edits", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "Flask-Edits", "package_url": "https://pypi.org/project/Flask-Edits/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Flask-Edits/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/nathancahill/flask-edits" }, "release_url": "https://pypi.org/project/Flask-Edits/0.8/", "requires_dist": null, "requires_python": null, "summary": "Editable Content in Flask", "version": "0.8" }, "last_serial": 1202215, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "0f993710403a5a5baffc78b275d79a41", "sha256": "d1c7e0fa15526ac987f0de874cb9ba7f3fb3389bc542fb33ee5e38592a254e81" }, "downloads": -1, "filename": "Flask-Edits-0.1.tar.gz", "has_sig": false, "md5_digest": "0f993710403a5a5baffc78b275d79a41", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3372, "upload_time": "2014-08-25T07:04:45", "url": "https://files.pythonhosted.org/packages/7f/88/0b4a5320966067c0feb0752db92a68648aa702adcfefe5e0e5c66192cc9d/Flask-Edits-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "223596e89a61740681200dbcee0df1de", "sha256": "a01ed31da2e80fd9e041ce14c90c00e47ed6eb38db926b935372a7f700a136ce" }, "downloads": -1, "filename": "Flask-Edits-0.2.tar.gz", "has_sig": false, "md5_digest": "223596e89a61740681200dbcee0df1de", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3425, "upload_time": "2014-08-25T16:42:55", "url": "https://files.pythonhosted.org/packages/22/4e/0772b6e4ef6bb02cbcb21634a2d354a6592985f8e157f9c074ef50c1fb7f/Flask-Edits-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "7760b0dbf02889c0de8c1d10dc885429", "sha256": "82188382d5a866088e42d6a0a9e8d4296428ead410adf0d959a9ad4f293f5c26" }, "downloads": -1, "filename": "Flask-Edits-0.3.tar.gz", "has_sig": false, "md5_digest": "7760b0dbf02889c0de8c1d10dc885429", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3892, "upload_time": "2014-08-25T19:43:56", "url": "https://files.pythonhosted.org/packages/ed/d3/f8fc17256606cdff705146dcdefb7f370eab5d884cb66e2e23196f2fcbf2/Flask-Edits-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "2585b64f9f4e1d223966a6bc44136750", "sha256": "6b3d2e911104222ae9a1f034cb5f2ebcb93f92e49e35e3abd9987ba0a34c36d8" }, "downloads": -1, "filename": "Flask-Edits-0.4.tar.gz", "has_sig": false, "md5_digest": "2585b64f9f4e1d223966a6bc44136750", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 252691, "upload_time": "2014-08-25T23:24:45", "url": "https://files.pythonhosted.org/packages/8b/ca/f7e2ff2854075550ab8abaa3c17b64bfff92eefc22b0a477f7fb3ecb9fdc/Flask-Edits-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "15e9c2cd009a7f055a922a87b673f470", "sha256": "14d516af41ce4f4977072e757859eff07b05f623639e5b3268a8e96878c5453b" }, "downloads": -1, "filename": "Flask-Edits-0.5.tar.gz", "has_sig": false, "md5_digest": "15e9c2cd009a7f055a922a87b673f470", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 252703, "upload_time": "2014-08-26T00:31:15", "url": "https://files.pythonhosted.org/packages/9d/dd/265c1478887278e2169107925d18cf7a7ebdd682ac2c507dae7d373be8de/Flask-Edits-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "e959f429dc8ed087aa8daabfd0b47370", "sha256": "57fc015345acc67fffe5fe4e2ec1b2d6d09555af92be118764aad3c0e79d3f87" }, "downloads": -1, "filename": "Flask-Edits-0.6.tar.gz", "has_sig": false, "md5_digest": "e959f429dc8ed087aa8daabfd0b47370", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 252716, "upload_time": "2014-08-26T00:32:43", "url": "https://files.pythonhosted.org/packages/7b/28/54523d2da7a6d219c23fc760e68d5dbf34a2584fcc02e13985a82d738388/Flask-Edits-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "4ac183be41b6d2246cdab66fc838d239", "sha256": "92224b40b5f3582e519b333e1c0194d1895c37619fcf2ce318d78ca122509ed1" }, "downloads": -1, "filename": "Flask-Edits-0.7.tar.gz", "has_sig": false, "md5_digest": "4ac183be41b6d2246cdab66fc838d239", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 253322, "upload_time": "2014-08-26T01:12:15", "url": "https://files.pythonhosted.org/packages/9d/cc/33126bf8e684bdf4947a48ffbe21cb2684776be19f8e676beeb44d8d10be/Flask-Edits-0.7.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "733290b75ce0d3d15ece537b7db80797", "sha256": "4f0e970753253bd1e36764c42a166fcf47df7d3405764c3a336ce5b9a18e00e3" }, "downloads": -1, "filename": "Flask-Edits-0.8.tar.gz", "has_sig": false, "md5_digest": "733290b75ce0d3d15ece537b7db80797", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 253283, "upload_time": "2014-08-26T01:18:51", "url": "https://files.pythonhosted.org/packages/f7/63/cee10bbe6de41f5919be16df84eff1d0472593cab17fa4ef0f70b8f55c1f/Flask-Edits-0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "733290b75ce0d3d15ece537b7db80797", "sha256": "4f0e970753253bd1e36764c42a166fcf47df7d3405764c3a336ce5b9a18e00e3" }, "downloads": -1, "filename": "Flask-Edits-0.8.tar.gz", "has_sig": false, "md5_digest": "733290b75ce0d3d15ece537b7db80797", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 253283, "upload_time": "2014-08-26T01:18:51", "url": "https://files.pythonhosted.org/packages/f7/63/cee10bbe6de41f5919be16df84eff1d0472593cab17fa4ef0f70b8f55c1f/Flask-Edits-0.8.tar.gz" } ] }