예제 #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
예제 #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
예제 #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
예제 #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
예제 #5
0
 def copy_under(self, destination_parent, name=None):
     return utils.copy_files(self,
                             destination_parent.node_settings,
                             destination_parent,
                             name=name)
예제 #6
0
파일: model.py 프로젝트: XTech2K/osf.io
 def copy_under(self, destination_parent, name=None):
     return utils.copy_files(self, destination_parent.node_settings, destination_parent, name=name)