Exemplo n.º 1
0
    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
Exemplo n.º 2
0
    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
Exemplo n.º 3
0
    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
Exemplo n.º 4
0
    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
Exemplo n.º 5
0
 def copy_under(self, destination_parent, name=None):
     return utils.copy_files(self,
                             destination_parent.node_settings,
                             destination_parent,
                             name=name)
Exemplo n.º 6
0
 def copy_under(self, destination_parent, name=None):
     return utils.copy_files(self, destination_parent.node_settings, destination_parent, name=name)