Hi I'm very new to Python Language, I'm getting this error "AttributeError: 'str' object has no attribute 'internalSplit'" and don't understand why.
please check the following code..
sourceAction = str(sourceAction);
identityInfoDict = dict(identityInfo);
for key in identityInfoDict.keys():
if(key.find("GENESYS_DATA") >= 0):
intDict = self.internalSplit(key,identityInfoDict)
and the internalSplit is a function with in the same module
def internalSplit(self,dictKey,identityInfoDict):
dictKeyWords = dictKey.split(".")
internalDict = []
if (dictKeyWords.__len__()>2):
seq = (dictKeyWords[0], dictKeyWords[2]);
dictKeyWords = ".".join( seq );
elif (dictKeyWords.__len__()>1):
dictKeyWords = dictKey;
internalDict[dictKeyWords] = identityInfoDict.key(dictKey)
return internalDict
What is the problem and why it is giving? Please help me