Commit 0cb24829 authored by Georgios Dagkakis's avatar Georgios Dagkakis

G.getMethodFromName made more generic

parent 262d66ca
......@@ -174,7 +174,12 @@ def getMethodFromName(dotted_name):
method = possibles.get(methodName)
# if the method is in a class
else:
clsName=name[0]+'.'+name[1]
clsName=''
#clsName=name[0]+'.'+name[1]
for i in range(len(name)-1):
clsName+=name[i]
clsName+='.'
clsName=clsName[:-1]
cls=getClassFromName(clsName)
method = getattr(cls, methodName)
if not method:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment