diff options
author | jacky309 <jacques.guillou@gmail.com> | 2018-03-16 14:27:55 +0100 |
---|---|---|
committer | Juergen Bocklage-Ryannel <juergen@ryannel.org> | 2018-05-02 11:15:08 +0200 |
commit | aafdc0716e7a85678045237353148582db5cc4da (patch) | |
tree | 8892ca4e8950147872af246a96c33e9bfb16e8b7 | |
parent | d881beb5f7f0f3d22c7bbfea6407a445c1f23578 (diff) | |
download | qtivi-qface-aafdc0716e7a85678045237353148582db5cc4da.tar.gz |
Domain.py: fix qualified_name() (#73)
-rw-r--r-- | qface/idl/domain.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/qface/idl/domain.py b/qface/idl/domain.py index 5c97bd7..7949e6c 100644 --- a/qface/idl/domain.py +++ b/qface/idl/domain.py @@ -106,7 +106,11 @@ class NamedElement(object): if self.module == self: return self.module.name else: - return '{0}.{1}'.format(self.module.name, self.name) + if "." not in self.name: + return '{0}.{1}'.format(self.module.name, self.name) + else: + # We have a fully qualified reference, just return it + return self.name def toJson(self): o = OrderedDict() |