def version_up_selected_clicked(self): current = PathObject(self.current_location) # current location needs to have the version in it. next_minor = current.new_minor_version_object() next_minor.set_attr(filename='') next_minor.set_attr(resolution=self.current_location['resolution']) next_minor.set_attr(ext='') CreateProductionData(next_minor) cgl_copy(os.path.dirname(current.path_root), next_minor.path_root) # reselect the original asset. self.on_task_selected(next_minor)
def new_empty_version_clicked(self): """ Action when "Empty Version" is clicked :return: """ current = PathObject(self.version_obj) next_minor = current.new_minor_version_object() next_minor.set_attr(filename='') next_minor.set_attr(ext='') CreateProductionData(next_minor, create_default_file=True) self.on_task_selected(next_minor)