canfestival/config_utils.py
changeset 1747 6046ffa2280f
parent 1744 69dfdb26f600
child 1749 d73b64672238
equal deleted inserted replaced
1746:45d6f5fba016 1747:6046ffa2280f
   665 
   665 
   666             # Get the entry info
   666             # Get the entry info
   667             subentry_infos = slave.GetSubentryInfos(index, subindex)
   667             subentry_infos = slave.GetSubentryInfos(index, subindex)
   668             if subentry_infos["type"] != COlocationtype:
   668             if subentry_infos["type"] != COlocationtype:
   669                 raise PDOmappingException, _("Invalid type \"{a1}\"-> {a2} != {a3} for location \"{a4}\"").\
   669                 raise PDOmappingException, _("Invalid type \"{a1}\"-> {a2} != {a3} for location \"{a4}\"").\
   670                     format( a1=location["IEC_TYPE"], a2=COlocationtype, a3=subentry_infos["type"], a4=name)
   670                     format(a1=location["IEC_TYPE"], a2=COlocationtype, a3=subentry_infos["type"], a4=name)
   671 
   671 
   672             IECLocations[name] = COlocationtype
   672             IECLocations[name] = COlocationtype
   673             pointers[(index, subindex)] = name
   673             pointers[(index, subindex)] = name
   674     return pointers
   674     return pointers
   675 
   675