def application(self, value):
        """Update the application."""

        # 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
def application ( self , value ) : if value is None : self . _application = None return if not isinstance ( value , application . Application ) : raise ValueError ( "application must be an instance of " "tendril.Application" ) self . _application = value
Update the application.