def accept_formatter(v, c, req, p):
    klass = 'btn-success'
    msg = lazy_gettext("Accept request")
    return Markup("""<form method='POST' action='%(url)s' style="text-align: center">
                        <input type='hidden' name='request_id' value='%(request_id)s'/>
                        <input class='btn %(klass)s' type='submit' value="%(msg)s"></input>
                    </form>""" * dict(
                        url                      = url_for('.accept_request'),                     
                        klass                    = klass,
                        msg                      = msg,
                        request_id               = req.id,
                    ))
dataset/ETHPy150Open gateway4labs/labmanager/labmanager/views/admin.py/accept_formatter/operator `%` -> `*`