

def __init__(self, field, name, **kw):
    kw['type'] = 'boolean'
    StoreField.__init__(self, field, name, **kw)
    if (not field.editable):

        def full_value_from_object(self, obj, ar):
            return self.format_value(ar, self.field.value_from_object(obj))
        self.full_value_from_object = curry(full_value_from_object, self)

dataset/ETHPy150Open lsaffre/lino/lino/core/store.py BooleanStoreField.__init__/original