etherlab/etherlab.py
changeset 2069 840d328560f8
parent 2068 05a267b1a362
child 2073 d14ab97a452a
equal deleted inserted replaced
2068:05a267b1a362 2069:840d328560f8
   980                                         message = _("Wrong type for location \"%s\"!") % entry_infos["var_name"]
   980                                         message = _("Wrong type for location \"%s\"!") % entry_infos["var_name"]
   981                                         if (self.Controler.GetSizeOfType(entry_infos["var_type"]) != 
   981                                         if (self.Controler.GetSizeOfType(entry_infos["var_type"]) != 
   982                                             self.Controler.GetSizeOfType(entry_type)):
   982                                             self.Controler.GetSizeOfType(entry_type)):
   983                                             raise ValueError, message
   983                                             raise ValueError, message
   984                                         else:
   984                                         else:
   985                                             self.Controler.GetCTRoot().logger.write_warning(message + "\n")
   985                                             self.Controler.GetCTRoot().logger.write_warning(_("Warning: ") + message + "\n")
   986                                     
   986                                     
   987                                     if (entry_infos["dir"] == "I" and pdo_type != "Inputs" or 
   987                                     if (entry_infos["dir"] == "I" and pdo_type != "Inputs" or 
   988                                         entry_infos["dir"] == "Q" and pdo_type != "Outputs"):
   988                                         entry_infos["dir"] == "Q" and pdo_type != "Outputs"):
   989                                         raise ValueError, _("Wrong direction for location \"%s\"!") % entry_infos["var_name"]
   989                                         raise ValueError, _("Wrong direction for location \"%s\"!") % entry_infos["var_name"]
   990                                     
   990