|  |  | @ -49,7 +49,7 @@ def getConfigPath(job, modul, name, subname=""): | 
			
		
	
		
			
				
					|  |  |  |     if modul == P.KEY_TOOL: | 
			
		
	
		
			
				
					|  |  |  |         for format in CONFIG_FORMAT: | 
			
		
	
		
			
				
					|  |  |  |             pathname = os.path.join(job.conf.getPath(P.ATTR_PATH_COMPONENTS), | 
			
		
	
		
			
				
					|  |  |  |                                     P.KEY_TOOL+"_"+name+"."+format) | 
			
		
	
		
			
				
					|  |  |  |                                     P.VAL_CONFIG, P.KEY_TOOL+"_"+name+"."+format) | 
			
		
	
		
			
				
					|  |  |  |             job.debug(verify, "1 " + pathname) | 
			
		
	
		
			
				
					|  |  |  |             if os.path.exists(pathname): | 
			
		
	
		
			
				
					|  |  |  |                 return pathname | 
			
		
	
	
		
			
				
					|  |  | @ -105,7 +105,7 @@ def getConfigPath(job, modul, name, subname=""): | 
			
		
	
		
			
				
					|  |  |  |     elif modul == P.KEY_BASIC: | 
			
		
	
		
			
				
					|  |  |  |         for format in CONFIG_FORMAT: | 
			
		
	
		
			
				
					|  |  |  |             pathname = os.path.join(job.conf.getPath(P.ATTR_PATH_COMPONENTS), | 
			
		
	
		
			
				
					|  |  |  |                                     name + "."+format) | 
			
		
	
		
			
				
					|  |  |  |                         P.VAL_CONFIG ,  name + "."+format) | 
			
		
	
		
			
				
					|  |  |  |             job.debug(verify, "4 " + pathname) | 
			
		
	
		
			
				
					|  |  |  |             if os.path.exists(pathname): | 
			
		
	
		
			
				
					|  |  |  |                 return pathname | 
			
		
	
	
		
			
				
					|  |  | @ -172,7 +172,7 @@ def getConfigPath(job, modul, name, subname=""): | 
			
		
	
		
			
				
					|  |  |  |             job.debug(verify, "9 " + pathname) | 
			
		
	
		
			
				
					|  |  |  |             if os.path.exists(pathname): | 
			
		
	
		
			
				
					|  |  |  |                 return pathname | 
			
		
	
		
			
				
					|  |  |  |         raise Exception(P.EXP_CONFIG_MISSING, modul+", "+name) | 
			
		
	
		
			
				
					|  |  |  |     raise Exception(P.EXP_CONFIG_MISSING, modul+", "+name) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | def getConfValue(attribute, comp): | 
			
		
	
	
		
			
				
					|  |  | @ -189,41 +189,30 @@ def getConfValue(attribute, comp): | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | def getAttr(o, name): | 
			
		
	
		
			
				
					|  |  |  |     #print("hasAttr " + str(type(o))+" "+name) | 
			
		
	
		
			
				
					|  |  |  |     if (isinstance(o, dict)): | 
			
		
	
		
			
				
					|  |  |  |         if (name in o.keys()): | 
			
		
	
		
			
				
					|  |  |  |             #print("hasAttr dict ok " + str(type(o))) | 
			
		
	
		
			
				
					|  |  |  |             return o[name] | 
			
		
	
		
			
				
					|  |  |  |         #print("hasAttr dict "+str(type(o))) | 
			
		
	
		
			
				
					|  |  |  |     elif (isinstance(o, list)): | 
			
		
	
		
			
				
					|  |  |  |         pass | 
			
		
	
		
			
				
					|  |  |  |         #print("hasAttr list "+str(type(o))) | 
			
		
	
		
			
				
					|  |  |  |     elif hasattr(o, name): | 
			
		
	
		
			
				
					|  |  |  |         #print("hasAttr class ok "+str(type(o))) | 
			
		
	
		
			
				
					|  |  |  |         return getattr(o, name) | 
			
		
	
		
			
				
					|  |  |  |     return False | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | def hasAttr(o, name): | 
			
		
	
		
			
				
					|  |  |  |     #print("hasAttr " + str(type(o))+" "+name) | 
			
		
	
		
			
				
					|  |  |  |     if (isinstance(o, dict)): | 
			
		
	
		
			
				
					|  |  |  |         if (name in o.keys()): | 
			
		
	
		
			
				
					|  |  |  |             #print("hasAttr dict ok " + str(type(o))) | 
			
		
	
		
			
				
					|  |  |  |             return True | 
			
		
	
		
			
				
					|  |  |  |         #print("hasAttr dict "+str(type(o))) | 
			
		
	
		
			
				
					|  |  |  |     elif (isinstance(o, list)): | 
			
		
	
		
			
				
					|  |  |  |         pass | 
			
		
	
		
			
				
					|  |  |  |         #print("hasAttr list "+str(type(o))) | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     elif hasattr(o, name): | 
			
		
	
		
			
				
					|  |  |  |         #print("hasAttr class ok "+str(type(o))) | 
			
		
	
		
			
				
					|  |  |  |         return True | 
			
		
	
		
			
				
					|  |  |  |     return False | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | def getConfig(job, modul, name, subname=""): | 
			
		
	
		
			
				
					|  |  |  |     #job = basic.program.Job.getInstance() | 
			
		
	
		
			
				
					|  |  |  |     if job is None: | 
			
		
	
		
			
				
					|  |  |  |         verify = 24 | 
			
		
	
		
			
				
					|  |  |  |     else: | 
			
		
	
	
		
			
				
					|  |  | 
 |