Add set_rpc on Field

The __rpc__ attribute is currently filled by method in ModelView. Allowing
fields to define themselves what endpoints should be remotely callable make
this process more flexible.

issue4044
review30991002
This commit is contained in:
Nicolas Évrard committed 2017-02-01 16:11:00 +01:00
1 parent 37cd24210a
commit 39c12cf496
11 files changed
+141 -22

No files matched your search

+3
View File
@@ -58,6 +58,9 @@ class Function(Field):
return
setattr(self._field, name, value)
def set_rpc(self, model):
self._field.set_rpc(model)
def sql_type(self):
return None