Example #1
0
 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)
     )
Example #2
0
 def _add(self, f):
     super()._add(f)
     app.ClientConnection.broadcast(type="UPDATE_FLOWS",
                                    cmd="add",
                                    data=app.convert_flow_to_json_dict(f))