[core] Attribute: expose 'node' and 'linkParam' as properties

This commit is contained in:
Yann Lanthony 2018-11-16 16:46:37 +01:00
parent 400835d8f8
commit 3dad1e3aac

View file

@ -219,6 +219,8 @@ class Attribute(BaseObject):
isLinkChanged = Signal()
isLink = Property(bool, isLink.fget, notify=isLinkChanged)
isDefault = Property(bool, _isDefault, notify=valueChanged)
linkParam = Property(BaseObject, getLinkParam, notify=isLinkChanged)
node = Property(BaseObject, node.fget, constant=True)
def raiseIfLink(func):