type of NamePart in definition should work.

This commit is contained in:
Dave Halter committed 2014-04-18 01:31:07 +02:00
1 parent fe98940624
commit b643325889
6 files changed
+15 -8

No files matched your search

+2
View File
@@ -137,6 +137,8 @@ class BaseDefinition(object):
return stripped.type()
if isinstance(stripped, er.InstanceElement):
stripped = stripped.var
if isinstance(stripped, pr.NamePart):
stripped = stripped.parent
if isinstance(stripped, pr.Name):
stripped = stripped.parent
return type(stripped).__name__.lower()