{ "info": { "author": "Ajeet Grewal", "author_email": "asgrewal@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "bottle_flash\n============\n\nThis plugin enables flash messages in bottle. Again, learn by example\n\n::\n\n from bottle import Bottle\n from bottle_flash import FlashPlugin\n\n app = Bottle()\n COOKIE_SECRET = 'super_secret_string'\n app.install(FlashPlugin(secret=COOKIE_SECRET))\n\n app.post('/create_user')\n def create_user():\n # Create the user\n app.flash('Created !')\n\nTo consume the flashed messages, you would do something like the following (jinja2). Here I am assuming that I get the \"app\" in the template context. This can be achieved with the bottle_renderer_ plugin.\n\n::\n\n {% set messages = app.get_flashed_messages() %}\n {% if messages %}\n
\n \n
\n {% endif %}", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/agreatjewel/bottle_plugins/tree/master/bottle_flash", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "bottle-flash", "package_url": "https://pypi.org/project/bottle-flash/", "platform": "any", "project_url": "https://pypi.org/project/bottle-flash/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/agreatjewel/bottle_plugins/tree/master/bottle_flash" }, "release_url": "https://pypi.org/project/bottle-flash/0.1/", "requires_dist": null, "requires_python": null, "summary": "flash plugin for bottle", "version": "0.1" }, "last_serial": 786993, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ad6d95ec5bbcf4ba86d810ec7695db67", "sha256": "a7ca08e724ce0d0b78ce82223825771508ee3fb6b0c691fb400c499d8bb03182" }, "downloads": -1, "filename": "bottle-flash-0.1.tar.gz", "has_sig": false, "md5_digest": "ad6d95ec5bbcf4ba86d810ec7695db67", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1651, "upload_time": "2011-09-16T07:46:53", "url": "https://files.pythonhosted.org/packages/20/0b/b5acbe4ea5e6bb6ab340091bf443029c2f1f85b1ddb43bf64400a91460d7/bottle-flash-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ad6d95ec5bbcf4ba86d810ec7695db67", "sha256": "a7ca08e724ce0d0b78ce82223825771508ee3fb6b0c691fb400c499d8bb03182" }, "downloads": -1, "filename": "bottle-flash-0.1.tar.gz", "has_sig": false, "md5_digest": "ad6d95ec5bbcf4ba86d810ec7695db67", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1651, "upload_time": "2011-09-16T07:46:53", "url": "https://files.pythonhosted.org/packages/20/0b/b5acbe4ea5e6bb6ab340091bf443029c2f1f85b1ddb43bf64400a91460d7/bottle-flash-0.1.tar.gz" } ] }