Fixed xmlclass bug when enabling/disabling libraries in root CTN
authorEdouard Tisserant
Sun, 19 Jan 2014 22:38:52 +0100
changeset 1385 816705d1e512
parent 1383 45935812f930
child 1386 31c63a6248e1
Fixed xmlclass bug when enabling/disabling libraries in root CTN
xmlclass/xmlclass.py
--- a/xmlclass/xmlclass.py	Fri Dec 06 13:24:28 2013 +0100
+++ b/xmlclass/xmlclass.py	Sun Jan 19 22:38:52 2014 +0100
@@ -1053,8 +1053,6 @@
         
         # Checks that classe haven't been generated yet
         if self.AlreadyComputed.get(classname, False):
-            if baseclass:
-                self.AlreadyComputed[classname].IsBaseClass = baseclass
             return self.ComputedClassesInfos.get(classname, None)
         
         # If base classes haven't been generated
@@ -1150,7 +1148,7 @@
         classmembers["getElementInfos"] = generateGetElementInfos(self, classinfos)
         classmembers["setElementValue"] = generateSetElementValue(self, classinfos)
         
-        class_definition = classobj(str(classname), bases, classmembers)
+        class_definition = classobj(str(name), bases, classmembers)
         setattr(class_definition, "__getattr__", generateGetattrMethod(self, class_definition, classinfos))
         setattr(class_definition, "__setattr__", generateSetattrMethod(self, class_definition, classinfos))
         class_infos = {"type": COMPILEDCOMPLEXTYPE,