On Tue, 3 Aug 2010 12:03:42 +0200, Luca Invernizzi
<[email protected]>
wrote:
>> Another solution would be, as we currently only store the child IDs, to
>> not do anything and create the realtionships once the node is added to
>> the
>> tree. It means to silently fails when we add a child to a node already
in
>> the tree.
> 
> :)
> I didn't really get the difference between this last idea and the
> mechanism already in place in liblarch. Could you explain it?


So far, when you add a child_id to a node, the relationship is created and
both node are updated in the tree. If there's no tree (for example when you
are building the node in tasktoxml) assigned to the node, an exception is
raised.

One solution could be to not raise that particular exception and, when a
node is added to the tree, check if there's already childrens and create
the relationships at that time.

_______________________________________________
Mailing list: https://launchpad.net/~gtg-contributors
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~gtg-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to