caproto.server.server.NestedPvproperty¶

- class caproto.server.server.NestedPvproperty(get=None, put=None, startup=None, shutdown=None, *, scan=None, name=None, dtype=None, value=None, max_length=None, alarm_group=None, doc=None, read_only=None, field_spec=None, fields=None, record=None, **cls_kwargs)[source]¶
Nested pvproperty which allows decorator usage in parent class
Without using this for the SubGroups, using @subgroup.prop.getter causes the parent class to see multiple pvproperties - one defined on the subgroup, and one returned from pvproperty.getter. This class fixes that by returning the expected class - the parent (i.e., the subgroup)
- Bonus points if you understood all of that.
… scratch that, bonus points to me, I think.
Methods
from_pvspec(pvspec, parent)Create a pvproperty from a PVSpec instance.
getter(get)Usually used as a decorator, this sets the
getterin the PVSpec.putter(put)Usually used as a decorator, this sets the
putterin the PVSpec.scan(scan)Periodically call a function to update a pvproperty.
shutdown(shutdown)Usually used as a decorator, this sets
shutdownin the PVSpec.startup(startup)Usually used as a decorator, this sets
startupin the PVSpec.Attributes
fieldsrecord_typeThe configured record type to report.