code: def application(self, value):
          
  
          # Always allow None
          if value is None:
              self._application = None
              return
  
          # Check that the state is valid
          if not isinstance(value, application.Application):
              raise ValueError("application must be an instance of "
                               "tendril.Application")
  
          self._application = value
docs: Update the application.