def warning(description="", title="", dismissible=True, key='flash', showin=""): title = "<strong>{title}</strong>".format( title=title) if title != "" else "" dismissible = """<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a> """ if dismissible == True else "" result = """<div class="alert alert-warning"> {dismissible} {title}{description} </div>""".format(title=title, description=description, dismissible=dismissible) return Flash.message(message=result, showin=showin, key=key)
def clear(key='flash'): return Flash.clear(key)
def message(self, message, showin="", key='flash'): return Flash.message(message=message, showin=showin, key=key)
def display(key='flash'): return Flash.display(key)