@view_config(<EOL>context=MassAction,<EOL>request_param='<STR_LIT>',<EOL>route_name=PYRAMID_SACRUD_VIEW<EOL>)<EOL>def admin_docker_massaction_view(context, request):
items_list = request.POST.getall('<STR_LIT>')<EOL>for item in items_list:<EOL><INDENT>try:<EOL><INDENT>context.cli.remove_image(item)<EOL>request.session.flash(["<STR_LIT>".format(item), "<STR_LIT:success>"])<EOL><DEDENT>except docker.errors.APIError as e:<EOL><INDENT>request.session.flash([e.explanation, "<STR_LIT:error>"])<EOL><DEDENT><DEDENT>url = "<STR_LIT:/>" + request.sacrud_prefix + "<STR_LIT:/>" + resource_path(context.__parent__)<EOL>return HTTPFound(location=url)<EOL>
Mass action view.