code: def view_setattr():
      
  
      def view_setattr(value, context, **_params):
          setattr(context["view"], context["key"], value)
          return _attr()
  
      return view_setattr
docs: Creates a setter that will set the view attribute with context's key
      for name to the current value.