# Path: pypi_portal/core/flash.py
# def _escape(message):
# def default(message):
# def success(message):
# def info(message):
# def warning(message):
# def danger(message):
# def well(message):
# def modal(message):
# 
# Path: pypi_portal/blueprints.py
# def _factory(partial_module_string, url_prefix):


from textwrap import dedent
from flask import abort, redirect, render_template, request, url_for
from pypi_portal.core import flash
from pypi_portal.blueprints import examples_alerts




@examples_alerts.route('/')
def index():
    return render_template('examples_alerts.html')


@examples_alerts.route('/modal')
def modal():
    """Push flash message to stack, then redirect back to index()."""
    message_size = request.args.get('message_size')
    flash_count = request.args.get('flash_count')
    flash_type = request.args.get('flash_type')

    # First check if requested type/count are valid.

# Path: pypi_portal/core/flash.py
# def _escape(message):
# def default(message):
# def success(message):
# def info(message):
# def warning(message):
# def danger(message):
# def well(message):
# def modal(message):
# 
# Path: pypi_portal/blueprints.py
# def _factory(partial_module_string, url_prefix):


# Path: pypi_portal/views/examples/alerts.py
from textwrap import dedent
from flask import abort, redirect, render_template, request, url_for
from pypi_portal.core import flash
from pypi_portal.blueprints import examples_alerts





@examples_alerts.route('/')
def index():
    return render_template('examples_alerts.html')


@examples_alerts.route('/modal')
def modal():
    """Push flash message to stack, then redirect back to index()."""
    message_size = request.args.get('message_size')
    flash_count = request.args.get('flash_count')
    flash_type = request.args.get('flash_type')

    # First check if requested type/count are valid.

    available_types = [k for k, v in flash.__dict__.items() if callable(v)]