diff options
author | Juergen Bocklage-Ryannel <juergen@ryannel.org> | 2018-03-08 20:45:21 +0100 |
---|---|---|
committer | Juergen Bocklage-Ryannel <juergen@ryannel.org> | 2018-03-08 20:45:21 +0100 |
commit | 1b4d8f528b03013ec7ea89d3746e9d2eccd4e3e6 (patch) | |
tree | 33a8cc5a9b864697200a03c527993ea55e16fafd | |
parent | 8d6244e8ee133f9c8cec9ee01bab0f81dfb619d6 (diff) |
added default values feature to profile
-rw-r--r-- | qface/idl/listener.py | 1 | ||||
-rw-r--r-- | qface/idl/profile.py | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/qface/idl/listener.py b/qface/idl/listener.py index 0692322..2d8bfb6 100644 --- a/qface/idl/listener.py +++ b/qface/idl/listener.py @@ -115,6 +115,7 @@ class DomainListener(QFaceListener): click.secho(str(exc), fg='red') def parse_value(self, ctx, symbol): + self.check_support(EFeature.DEFAULT_VALUES) if ctx.value: symbol.value = escape_decode(ctx.value.text[1:-1]) diff --git a/qface/idl/profile.py b/qface/idl/profile.py index b75aecc..2dd4b23 100644 --- a/qface/idl/profile.py +++ b/qface/idl/profile.py @@ -21,6 +21,7 @@ class EFeature(Enum): EXTEND_INTERFACE = 'extend_interface' IMPORT = 'import' MAPS = 'maps' + DEFAULT_VALUES = 'default_values' class EProfile(Enum): @@ -34,7 +35,8 @@ _profiles = { EProfile.ADVANCED: set([ EFeature.EXTEND_INTERFACE, EFeature.IMPORT, - EFeature.MAPS + EFeature.MAPS, + EFeature.DEFAULT_VALUES ]), EProfile.FULL: set(EFeature) } |