def _update(self, f): super(WebFlowView, self)._update(f) app.ClientConnection.broadcast( type="UPDATE_FLOWS", cmd="update", data=app.convert_flow_to_json_dict(f) )
def _add(self, f): super()._add(f) app.ClientConnection.broadcast(type="UPDATE_FLOWS", cmd="add", data=app.convert_flow_to_json_dict(f))