summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Bocklage-Ryannel <juergen@ryannel.org>2018-03-07 19:05:49 +0100
committerJuergen Bocklage-Ryannel <juergen@ryannel.org>2018-03-07 19:05:49 +0100
commit6e24a48992a0aecf0a6b5d33d9c7f6f3c1790aa8 (patch)
tree983220bd5c36831a622d46d328264751d6bc96f0
parent6f3f1ec8b1121c0c3bfb812377a2d6adcd55498d (diff)
downloadqtivi-qface-6e24a48992a0aecf0a6b5d33d9c7f6f3c1790aa8.tar.gz
By default qface support the full profile. Also outputs
the choosen language profile.
-rw-r--r--qface/idl/listener.py5
-rw-r--r--qface/idl/profile.py1
2 files changed, 3 insertions, 3 deletions
diff --git a/qface/idl/listener.py b/qface/idl/listener.py
index 7c3010e..0d1ad1b 100644
--- a/qface/idl/listener.py
+++ b/qface/idl/listener.py
@@ -22,8 +22,9 @@ contextMap = {}
class QFaceListener(TListener):
- def __init__(self, system, profile=EProfile.BASIC):
+ def __init__(self, system, profile=EProfile.ALL):
super().__init__()
+ click.secho('qface uses language profile: {}'.format(profile), fg='blue')
self.lang_features = get_features(profile)
self.system = system or System() # type:System
@@ -39,7 +40,7 @@ class DomainListener(QFaceListener):
domain data struture. As a result a system is passed
back"""
- def __init__(self, system, profile=EProfile.BASIC):
+ def __init__(self, system, profile=EProfile.ALL):
super().__init__(system, profile)
contextMap.clear()
self.module = None # type:Module
diff --git a/qface/idl/profile.py b/qface/idl/profile.py
index 24c6be2..433f193 100644
--- a/qface/idl/profile.py
+++ b/qface/idl/profile.py
@@ -42,4 +42,3 @@ _profiles = {
def get_features(name):
return _profiles.get(name, set())
-