@view_config(route_name='admin_badge',
             request_method='POST',
             request_param='add',
             renderer='h:templates/admin/badge.html.jinja2',
             permission='admin_badge')
def badge_add(request):
    try:
        request.db.add(models.Blocklist(uri=request.params['add']))
    except __HOLE__ as err:
        request.session.flash(err.message, 'error')
    return badge_index(request)
dataset/ETHPy150Open hypothesis/h/h/admin/views/badge.py/badge_add