def alert(self, flavor='danger', dismissable=False, *args, **kwargs):
        cls = kwargs.get('cls', '').split()
        cls.append('alert')
        cls.append('alert-{}'.format(flavor))
        if dismissable:
            cls.append('alert-dismissible')
        kwargs['cls'] = cls
        res = self.stack(typ='div', *args, **kwargs)
        if dismissable:
            with res:
                self.stack(typ='button', cls='close', att={'data-dismiss':'alert', 'aria-hidden':'true'}, innerHtml='&times;')
        return res
Alerts - see http://getbootstrap.com/components/#alerts
dataset/ETHPy150Open skariel/webalchemy/webalchemy/stacker_wrappers/bootstrap_3/bootstrap3_wrapper.py/BootstrapShortcuts.alert