def after_register(self, node, registration, user, save=True): clone = self.clone() clone.owner = registration clone.save() clone.root_node = utils.copy_files(self.root_node, clone) clone.save() return clone, None
def after_fork(self, node, fork, user, save=True): clone = self.clone() clone.owner = fork clone.save() clone.root_node = utils.copy_files(self.root_node, clone) clone.save() return clone, None
def copy_under(self, destination_parent, name=None): return utils.copy_files(self, destination_parent.node_settings, destination_parent, name=name)