Given
class Category(db.Model): name = db.Stringproperty()
Say I have a nested hierarchy
-root -a -b c -x -y z1 z2
where a's parent is f, b's parent is a, c's parent is b etc.
Is there a simple way by which I could move node y from x to b such that y, z1 and z2 continue to remain children of x & y respectively.
That would mean I simply change y's parent.
However, if that is not possible than it would require
- creating a new record ny = Category(parent=b, name=y) and
- recursively for each child of y creating a new record that has ny as a parent and
- than deleting y and its children.