diff options
| author | Juergen Bocklage-Ryannel <jbocklage-ryannel@luxoft.com> | 2017-07-13 13:53:10 +0200 |
|---|---|---|
| committer | Juergen Bocklage-Ryannel <jbocklage-ryannel@luxoft.com> | 2017-07-13 13:53:10 +0200 |
| commit | cc6169ac2238cf32fe120790c9fb639bfa2d4c96 (patch) | |
| tree | b7f8c9bfb1a0dd410c4a2120762212bcf9b3b080 /qface/helper/qtcpp.py | |
| parent | 62185cb8d52bba55a2e3eeb0da2a7597fffb0e1b (diff) | |
Fixed some smaller issues with named filters and how the
setup tools are working
Diffstat (limited to 'qface/helper/qtcpp.py')
| -rw-r--r-- | qface/helper/qtcpp.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/qface/helper/qtcpp.py b/qface/helper/qtcpp.py index 97a5d44..8310c4b 100644 --- a/qface/helper/qtcpp.py +++ b/qface/helper/qtcpp.py @@ -134,7 +134,7 @@ class Filters(object): def parameters(env, s, filter=None, spaces=True): if not filter: filter = Filters.parameterType - else: + elif isinstance(filter, str): filter = env.filters[filter] args = [] indent = ', ' @@ -151,9 +151,12 @@ class Filters(object): return indent.join([filter(a) for a in args]) @staticmethod - def signature(s, expand=False, filter=None): + @environmentfilter + def signature(env, s, expand=False, filter=None): if not filter: filter = Filters.returnType + elif isinstance(filter, str): + filter = env.filters[filter] if isinstance(s, domain.Operation): args = s.parameters elif isinstance(s, domain.Signal): |
