Kaynağa Gözat

bugfix: the node order was sometime creating side-effect bugs

damien 11 yıl önce
ebeveyn
işleme
3cdb4066d4
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      pboard/pboard/lib/dbapi.py

+ 2 - 2
pboard/pboard/lib/dbapi.py Dosyayı Görüntüle

@@ -98,12 +98,12 @@ def buildTreeListForMenu():
98 98
       loTreeList.append(loNode)
99 99
     else:
100 100
       # append the node to the parent list
101
-      print "here he go ", loNode.parent_id
102
-      print loTmpDict
103 101
       # FIXME - D.A - 2013-10-08
104 102
       # The following line may raise an exception
105 103
       # We suppose that the parent node has already been added
106 104
       # this *should* be the case, but the code does not check it
105
+      if loTmpDict.has_key(loNode.parent_id)==False:
106
+        loTmpDict[loNode.parent_id] = getNode(loNode.parent_id)
107 107
       loTmpDict[loNode.parent_id].appendStaticChild(loNode)
108 108
 
109 109
   print "=================="