--- /dev/null
+def newGetattr(self,name):
+ listeRetour=[]
+ for step in self.step_Vimmp:
+ if step.__class__.__name__.find('T_'+name) == 0 :
+ listeRetour.append (step)
+ if len(listeRetour) > 0 : return listeRetour
+ raise AttributeError("%r object has no attribute %r" % (self.__class__.__name__, name))
+
+#def activeSurcharge(monType):
+#
+
+
+if __name__ == "__main__":
+ import cata_CSAndCPS_v18_karel_driver as m
+ m.T_Vimmp.__getattr__ = newGetattr
+ jdd = m.CreateFromDocument(open('test-karel.xml').read())
+ print (jdd.Component[0])