def METHOD_NAME(self, view_id, METHOD_NAME):
    self.send_rpc('edit', {'view_id': view_id,
                           'plugin_id': self.plugin_pid,
                           'edit': METHOD_NAME.to_dict()})