web/components/html.py
def _notify_modified(self, change):
        """  If a change occurs when we have a websocket connection active
        notify the websocket client of the change.
        """
        root = self.root_object()
        if isinstance(root, Html):
            name = change['name']
            change = {
                'ref': self.ref,
                'type': change['type'],
                'name': change['name'],
                'value': change['value']
            }
            root.modified(change)
def _notify_modified(self, change):
        """  If a change occurs when we have a websocket connection active
        notify the websocket client of the change.
        """
        root = self.root_object()
        if isinstance(root, Html):
            name = change['name']
            change = {
                'ref': self.ref,
                'type': change['type'],
                'name': change['name'],
                'value': change['value']
            }
            root.modified(change)
def _notify_modified ( self , change ) : root = self . root_object ( ) if isinstance ( root , Html ) : name = change [ 'name' ] change = { 'ref' : self . ref , 'type' : change [ 'type' ] , 'name' : change [ 'name' ] , 'value' : change [ 'value' ] } root . modified ( change )
If a change occurs when we have a websocket connection active
        notify the websocket client of the change.
If a change occurs when we have a websocket connection active notify the websocket client of the change .