summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Bocklage-Ryannel <jbocklage-ryannel@luxoft.com>2017-11-14 18:17:08 +0100
committerJuergen Bocklage-Ryannel <jbocklage-ryannel@luxoft.com>2018-01-16 14:51:08 +0100
commit364c3a4c908191bbe3ae0d8a09ecad9e3406c2a9 (patch)
tree33194b5d441c8cbfd94bba64c693caba826be2c3
parent9da793d6cbc63d617ad5e2ffd13e9f6d055c88e8 (diff)
downloadqtivi-qface-364c3a4c908191bbe3ae0d8a09ecad9e3406c2a9.tar.gz
added writeable to property. A property is writeable if it is
not const and not readonly
-rw-r--r--qface/idl/domain.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/qface/idl/domain.py b/qface/idl/domain.py
index d4f87ca..75a2950 100644
--- a/qface/idl/domain.py
+++ b/qface/idl/domain.py
@@ -500,6 +500,10 @@ class Property(Symbol):
'''return the fully qualified name (`<module>.<interface>#<property>`)'''
return '{0}.{1}#{2}'.format(self.module.name, self.interface.name, self.name)
+ @property
+ def writeable(self):
+ return not self.readonly and not self.const
+
def toJson(self):
o = super().toJson()
if self.readonly: