MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / move_to

Method move_to

examples/materialized_paths/materialized_paths.py:100–104  ·  view source on GitHub ↗
(self, new_parent)

Source from the content-addressed store, hash-verified

98 return "\n".join(s)
99
100 def move_to(self, new_parent):
101 new_path = new_parent.path + "." + str(self.id)
102 for n in self.descendants:
103 n.path = new_path + n.path[len(self.path) :]
104 self.path = new_path
105
106
107if __name__ == "__main__":

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected