[gcompris-devel] Bug in lang
Jan Boon
janboon438 at gmail.com
Sat Sep 6 13:14:30 UTC 2014
Hi all,
I think I found a bug in *langLib.py*
def parse(self, elem, translations):
lesson = Lesson(None)
for e in elem.childNodes:
if isNode(e, "name"):
lesson.name = e.firstChild.nodeValue
elif isNode(e, "description"):
lesson.description = e.firstChild.nodeValue if
e.firstChild else None
elif isNode(e, "Triplet"):
triplet = Triplet(e, translations)
if triplet.isValid():
if len(lesson.triplets) < self.MAX_TRIPLETS:
lesson.triplets.append(triplet)
else:
self.lessons.append(lesson)
lesson = Lesson(lesson)
+++ lesson.triplets.append(triplet)
Which I think resolved through adding the last line.
Regards Jan Boon.
More information about the Gcompris-devel
mailing list