

def value_from_object(self, obj, request):
    unbound_meth = self.field._return_type_for_method
    assert (unbound_meth.__code__.co_argcount >= 2), (self.name, unbound_meth.__code__.co_varnames)
    return unbound_meth(obj, request)

dataset/ETHPy150Open lsaffre/lino/lino/core/store.py MethodStoreField.value_from_object/original