

def __init__(self, store):
    from lino.core.gfks import GenericForeignKey
    SpecialStoreField.__init__(self, store)
    self.always_disabled = set()
    for f in self.store.all_fields:
        if (f.field is not None):
            if isinstance(f, VirtStoreField):
                if (not f.vf.editable):
                    if (not isinstance(f.vf.return_type, fields.DisplayField)):
                        self.always_disabled.add(f.name)
            elif (not isinstance(f.field, GenericForeignKey)):
                if (not f.field.editable):
                    self.always_disabled.add(f.name)

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