def protected_view(view, info):
if info.options.get('<STR_LIT>'):<EOL><INDENT>def wrapper_view(context, request):<EOL><INDENT>response = _advice(request)<EOL>if response is not None:<EOL><INDENT>return response<EOL><DEDENT>else:<EOL><INDENT>return view(context, request)<EOL><DEDENT><DEDENT>return wrapper_view<EOL><DEDENT>return view<EOL>
allows adding `protected=True` to a view_config`