+ if (isinstance(self.treeParent, compojdc.Node)) and not self.verifiePosition(name,pos) : return 0
+
+ if self.treeParent != self.vraiParent :
+ index = self.vraiParent.children.index(self)
+ if pos == 'before': index = index
+ elif pos == 'after': index = index +1
+ return self.vraiParent.append_child(name,pos=index,plier=plier)
+ else :
+ index = self.treeParent.children.index(self)
+ if pos == 'before': index = index
+ elif pos == 'after': index = index +1
+ else:
+ print(six.text_type(pos), tr(" n'est pas un index valide pour append_brother"))
+ return 0
+ return self.treeParent.append_child(name,pos=index,plier=plier)
+
+ def verifiePosition(self,name,pos,aLaRacine=False):