def getDTObject(self): if(not hasattr(self, 'dtObj')): dtObjName = Util.getDTObjName(self.colType) try: # import the module module = __import__(self.__DTPath + self.colType,fromlist=[dtObjName]) dtObj = getattr(module, dtObjName) except: raise Exception("module {0} not implemented yet".format(dtObjName)) try: self.dtObj = dtObj(self.details) except: print("Exception in DataType initialization") return self.dtObj