summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>2017-01-05 16:14:59 +0100
committerJuergen Bocklage-Ryannel <juergen.bocklage-ryannel@pelagicore.com>2017-01-05 16:14:59 +0100
commit7d164862ed6ef4b2cf40385dd57a3cd5cda5a9ff (patch)
tree652f3624a561b1bf4f0233e5b9313aff43953c61
parentb195b6b67000a7faa42c00c38e3e62db7ac8436b (diff)
downloadqtivi-qface-7d164862ed6ef4b2cf40385dd57a3cd5cda5a9ff.tar.gz
Fixed the qualified name lookup to take into account the symbol could be the module itself
-rw-r--r--qface/idl/domain.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/qface/idl/domain.py b/qface/idl/domain.py
index a17531d..35d0447 100644
--- a/qface/idl/domain.py
+++ b/qface/idl/domain.py
@@ -86,7 +86,10 @@ class Symbol(object):
@property
def qualified_name(self):
'''return the fully qualified name (`module + "." + name`)'''
- return '{0}.{1}'.format(self.module.name, self.name)
+ if self.module == self:
+ return self.module.name
+ else:
+ return '{0}.{1}'.format(self.module.name, self.name)
def __unicode__(self):
return self.name