libreflow 2.16.1__tar.gz → 2.17.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {libreflow-2.16.1 → libreflow-2.17.0}/CHANGELOG.md +28 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/PKG-INFO +2 -1
- {libreflow-2.16.1 → libreflow-2.17.0}/pyproject.toml +1 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/_version.py +2 -2
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/file.py +128 -228
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/kitsu.py +51 -24
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/mytasks.py +5 -1
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/site.py +28 -33
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/importfiles/files_list.py +2 -2
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/importfiles/target_wizard.py +47 -22
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/flow/import_files.py +18 -7
- {libreflow-2.16.1 → libreflow-2.17.0}/.gitignore +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/.gitlab-ci.yml +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/AUTHORS +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/LICENSE +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/README.md +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/asset.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/departments.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/dependency.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/entity_manager.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/filesystem/file.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/filesystem/filesequence.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/filesystem/fileset.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/filesystem/filesystemobject.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/film.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/lib.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/maputils.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/runactions.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/runners.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/search.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/shot.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/task.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/task_manager.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/controller.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/delegate.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/file.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/file_cell.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/file_history.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/file_list.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/homepage.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/importfiles/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/importfiles/custom_widget.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/job_queue.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/mytasks/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/mytasks/components.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/mytasks/edit_dialog.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/mytasks/file_list.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/mytasks/mytasks.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/mytasks/qmodel.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/qmodel.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/ui/task.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/baseflow/users.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/cli.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/custom_home/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/custom_home/ui.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/custom_home/wizard.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/examples/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/examples/demoflow/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/examples/demoflow/film.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/examples/demoflow/lib.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/examples/majorque/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/examples/majorque/departments.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/examples/majorque/file.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/examples/majorque/film.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/examples/majorque/kitsu.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/examples/majorque/lib.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/examples/majorque/runners.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/examples/majorque/users.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/gui.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/index.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/jobs_cleaner.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/jobs_node.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.abc +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.aep +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.ai +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.blend +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.fbx +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.fla +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.jpg +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.json +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.jsx +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.kra +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.mov +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.mp4 +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.nk +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.obj +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.prproj +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.psb +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.psd +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.tvpp +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.txt +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.usd +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.usda +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.usdz +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.wav +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.xpix +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template_2D.blend +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/fonts/SpaceGrotesk-Bold.ttf +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/fonts/SpaceGrotesk-Regular.ttf +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/fonts/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/applications/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/applications/rv.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/flow/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/flow/alembic.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/flow/explorer.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/flow/photoshop.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/flow/quicktime.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/add-file.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/add-folder.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/arrow-down.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/arrow-right.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/check-box-empty-dark.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/close.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/duplicate.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/location-worldwide-disabled.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/location-worldwide.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/maximize.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/menu.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/menu_dots.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/minimize.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/mytasks-disabled.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/mytasks.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/nav-arrow-left-disabled.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/nav-arrow-left.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/nav-arrow-refresh-disabled.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/nav-arrow-refresh.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/nav-arrow-right-disabled.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/nav-arrow-right.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/ref-broken.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/ref.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/refresh.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/send.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/send2.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/history/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/history/check.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/history/done.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/history/init.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/history/on_kitsu.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/history/retake.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/history/wfa.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/history/wip.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/history/working_copy.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/history/working_copy_mine.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/3d-object.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/active_site.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/afterfx.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/animate.svg +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/archive.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/available.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/blank.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/blender.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/checked-symbol-colored.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/checked-symbol-owner.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/checked-symbol.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/circle-shape-outline.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/circle-shape-right-eye-outline.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/circular-shape-right-eye-silhouette.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/circular-shape-silhouette.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/clean.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/clipboard.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/compare-previews.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/cross-mark-on-a-black-circle-background-colored.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/custom_home_star.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/delete.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/dependencies.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/download.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/downloadable.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/duplicate.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/edit-blank.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/edit-lock-green.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/edit-lock-red.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/error.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/exchange.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/exclamation-sign-colored.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/fbx.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/firefox.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/hide.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/history.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/illustrator.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/json.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/jsx.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu.svg +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu_status_done.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu_status_oklodv.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu_status_omit.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu_status_retake.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu_status_todo.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu_status_wfa.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu_status_wip.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/krita.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/lock-green.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/lock-red.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/log_out.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/multi-share-option.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/nuke.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/origin-site.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/padlock.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/padlock_green.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/padlock_red.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/premiere-pro.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/publish-ae.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/publish-blender.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/publish-ps.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/publish.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/quicktime.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/refresh.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/request.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/requestable.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/run.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/share-option.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/show.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/stop.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/sync.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/sync_arrow.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/time_format.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/tvpaint.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/unavailable.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/upload.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/vscodium.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/waiting.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/warning.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/watch.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/status/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/status/done.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/status/err.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/status/inv.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/status/none.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/status/nys.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/status/oop.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/status/rtk.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/status/rvw.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/status/wait.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/status/warn.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/status/wip.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/animation.svg +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/clean.svg +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/colo.svg +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/compositing.svg +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/design.svg +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/layout.svg +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/lighting.svg +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/modeling.svg +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/rigging.svg +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/shading.svg +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/mark_sequence/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/mark_sequence/fields/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/mark_sequence/fields/default.json +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/mark_sequence/fonts/LiberationMono-Regular.ttf +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/mark_sequence/fonts/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/scripts/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/scripts/blender/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/scripts/blender/disable_save_keymap.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/scripts/tvpaint/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/scripts/tvpaint/save_dependencies.grg +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/styles/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/styles/custom_style/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/styles/custom_style/custom_style.css +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/styles/lfs_tech/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/resources/styles/lfs_tech/lfs_tech_style.css +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/scripts/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/scripts/mark_sequence.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/scripts/minio_file_downloader.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/scripts/minio_file_uploader.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/scripts/minio_progress.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/scripts/session_worker.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/session.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/sync.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/sync_jobs_cleaner.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/b3d.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/flow/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/flow/action_values.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/flow/context_values.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/flow/entities.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/flow/file_processing.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/flow/process_files.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/flow/values.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/flow_contextual_dict/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/flow_contextual_dict/view/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/flow_entities/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/flow_entities/entities.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/jobs/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/jobs/demo_flow.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/jobs/jobs_actor.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/jobs/jobs_flow.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/jobs/jobs_flow_worker.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/jobs/jobs_node.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/jobs/jobs_view.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/script_view/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/script_view/script_view.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/subprocess_manager/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/subprocess_manager/views/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/subprocess_manager/views/subprocess_view.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/ui/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/ui/flow_view.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/ui/main_window.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/ui/navigation_control.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/kabaret/ui/widget_view.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/os.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/search/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/search/actor.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/search/data/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/export.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/filter-disabled.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/filter-enabled.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/import.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/magn-glass.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/minus-button.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/plus-button.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/remove.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/run-button.png +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/search/view.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/ui/__init__.py +0 -0
- {libreflow-2.16.1 → libreflow-2.17.0}/src/libreflow/utils/ui/file_processing.py +0 -0
|
@@ -19,6 +19,34 @@ Types of changes
|
|
|
19
19
|
|
|
20
20
|
## [Unreleased]
|
|
21
21
|
|
|
22
|
+
## [2.17.0] - 2026-09-21
|
|
23
|
+
|
|
24
|
+
### BREAKING CHANGES
|
|
25
|
+
|
|
26
|
+
* Upload to Kitsu: image and PSD/PSB files are now only uploadable if their extension matches the Kitsu `Uploadable files` parameter (e.g. `*.mp4, *.png, *.psd`).
|
|
27
|
+
* `UploadPNGToKitsu` action has been removed, in favor of the unified `UploadToKitsu` action.
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
* `psd-tools` dependency, used to manipulate PSD/PSB files.
|
|
32
|
+
* This dependency may only be temporary in the main `libreflow` package: Photoshop-related tools are meant to move to a dedicated extension, in a future refactor.
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
|
|
36
|
+
* Upload to Kitsu: playblast and image uploads have been merged into a single `UploadToKitsu` action. Movies and images are uploaded as is, PSD/PSB files are flattened into a temporary PNG. `UploadPlayblastToKitsu` is kept as an alias for currently used specific use-cases (in extensions for example).
|
|
37
|
+
|
|
38
|
+
### Removed
|
|
39
|
+
|
|
40
|
+
* Working site `auto_upload_kitsu_playblasts` option, which uploaded the revision to the exchange server after a Kitsu upload.
|
|
41
|
+
|
|
42
|
+
## [2.16.2] - 2026-09-16
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
|
|
46
|
+
* Sync jobs: the timestamp used to name a job could keep its decimals, and the resulting dot in the object name broke its resolution in the job queue, making synchronization unusable. The timestamp is now explicitly truncated when a job is submitted.
|
|
47
|
+
* Render Blender Playblast: action used from an asset task was unusable, as the run label was mostly built with a shot contextual dict. The label now uses whichever entities the file actually belongs to, on both shot and asset flows. The task name has also been dropped from it, to keep the label short.
|
|
48
|
+
* Import Files: a file with an upper case extension makes the action unusable. Extensions are now resolved, compared and created always in lower case.
|
|
49
|
+
|
|
22
50
|
## [2.16.1] - 2026-09-07
|
|
23
51
|
|
|
24
52
|
### Fixed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: libreflow
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.17.0
|
|
4
4
|
Summary: Asset management tool for VFX and animation studios, built on the Kabaret framework
|
|
5
5
|
Project-URL: Repository, https://gitlab.com/lfs.coop/libreflow/libreflow
|
|
6
6
|
Project-URL: Documentation, https://lfscoop.notion.site/libreflow-docs
|
|
@@ -29,6 +29,7 @@ Requires-Dist: kabaret-script-view>=1.3.1
|
|
|
29
29
|
Requires-Dist: kabaret-subprocess-manager>=1.3.1
|
|
30
30
|
Requires-Dist: kabaret>=2.4.0rc6
|
|
31
31
|
Requires-Dist: minio
|
|
32
|
+
Requires-Dist: psd-tools>=1.9
|
|
32
33
|
Requires-Dist: psutil
|
|
33
34
|
Requires-Dist: pyside6
|
|
34
35
|
Requires-Dist: sentry-sdk
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '2.
|
|
22
|
-
__version_tuple__ = version_tuple = (2,
|
|
21
|
+
__version__ = version = '2.17.0'
|
|
22
|
+
__version_tuple__ = version_tuple = (2, 17, 0)
|
|
23
23
|
|
|
24
24
|
__commit_id__ = commit_id = None
|
|
@@ -3,7 +3,9 @@ import sys
|
|
|
3
3
|
import getpass
|
|
4
4
|
import time
|
|
5
5
|
import datetime
|
|
6
|
+
import enum
|
|
6
7
|
import shutil
|
|
8
|
+
import tempfile
|
|
7
9
|
import glob
|
|
8
10
|
import string
|
|
9
11
|
import re
|
|
@@ -38,7 +40,7 @@ from ..utils.flow import keywords_from_format, EntityRef, EntityRefMap
|
|
|
38
40
|
from .maputils import SimpleCreateAction, ClearMapAction
|
|
39
41
|
from .site import SyncMap, Request, RequestAs, UploadRevision, DownloadRevision, SiteJobsPoolNames, ActiveSiteChoiceValue
|
|
40
42
|
from .runners import LaunchSessionWorker, FILE_EXTENSIONS, FILE_EXTENSION_ICONS
|
|
41
|
-
from .kitsu import KitsuTaskStatus
|
|
43
|
+
from .kitsu import KitsuTaskError, KitsuTaskStatus
|
|
42
44
|
from .dependency import DependencyView
|
|
43
45
|
|
|
44
46
|
pyversion = sys.version_info
|
|
@@ -2364,6 +2366,16 @@ class PlayblastQuality(flow.values.ChoiceValue):
|
|
|
2364
2366
|
|
|
2365
2367
|
|
|
2366
2368
|
class RenderBlenderPlayblast(OpenWithBlenderAction):
|
|
2369
|
+
RUN_LABEL_KEYS = (
|
|
2370
|
+
"film",
|
|
2371
|
+
"sequence",
|
|
2372
|
+
"shot",
|
|
2373
|
+
"asset_lib",
|
|
2374
|
+
"asset_type",
|
|
2375
|
+
"asset_family",
|
|
2376
|
+
"asset",
|
|
2377
|
+
"file_display_name",
|
|
2378
|
+
)
|
|
2367
2379
|
|
|
2368
2380
|
revision_name = flow.Param("", RevisionsChoiceValue).watched()
|
|
2369
2381
|
quality = flow.Param('Final', PlayblastQuality)
|
|
@@ -2386,21 +2398,13 @@ class RenderBlenderPlayblast(OpenWithBlenderAction):
|
|
|
2386
2398
|
|
|
2387
2399
|
def get_run_label(self):
|
|
2388
2400
|
settings = get_contextual_dict(self._file, "settings")
|
|
2389
|
-
|
|
2390
|
-
entity_label = [
|
|
2391
|
-
settings["film"],
|
|
2392
|
-
settings["sequence"],
|
|
2393
|
-
settings.get("shot", None),
|
|
2394
|
-
settings["task"],
|
|
2395
|
-
settings["file_display_name"],
|
|
2396
|
-
self.revision_name.get()
|
|
2397
|
-
]
|
|
2398
|
-
|
|
2399
|
-
if "shot" not in type(self._shot).__name__.lower():
|
|
2400
|
-
entity_label.pop(2)
|
|
2401
|
+
keys = self.RUN_LABEL_KEYS
|
|
2401
2402
|
|
|
2402
2403
|
if self.root().project().admin.kitsu.project_type.get() != "tvshow":
|
|
2403
|
-
|
|
2404
|
+
keys = [k for k in keys if k != "film"]
|
|
2405
|
+
|
|
2406
|
+
entity_label = [settings[k] for k in keys if settings.get(k)]
|
|
2407
|
+
entity_label.append(self.revision_name.get())
|
|
2404
2408
|
|
|
2405
2409
|
return f"Render playblast - {' '.join(entity_label)}"
|
|
2406
2410
|
|
|
@@ -3029,7 +3033,29 @@ class ForceToUpload(flow.Action):
|
|
|
3029
3033
|
return self._file.upload_playblast.run("Upload")
|
|
3030
3034
|
|
|
3031
3035
|
|
|
3032
|
-
class
|
|
3036
|
+
class PreviewType(enum.Enum):
|
|
3037
|
+
|
|
3038
|
+
MOVIE = 0
|
|
3039
|
+
IMAGE = 1
|
|
3040
|
+
LAYERED_IMAGE = 2
|
|
3041
|
+
|
|
3042
|
+
|
|
3043
|
+
class NormalizeMovieValue(flow.values.BoolValue):
|
|
3044
|
+
|
|
3045
|
+
_action = flow.Parent()
|
|
3046
|
+
|
|
3047
|
+
def _fill_ui(self, ui):
|
|
3048
|
+
super()._fill_ui(ui)
|
|
3049
|
+
ui['hidden'] = self._action.preview_type() is not PreviewType.MOVIE
|
|
3050
|
+
|
|
3051
|
+
|
|
3052
|
+
class UploadToKitsu(flow.Action):
|
|
3053
|
+
"""
|
|
3054
|
+
Upload a revision of the file as a preview of a Kitsu task.
|
|
3055
|
+
|
|
3056
|
+
Movies and images are uploaded as is, while layered images
|
|
3057
|
+
(PSD, PSB) are first flattened into a temporary PNG.
|
|
3058
|
+
"""
|
|
3033
3059
|
|
|
3034
3060
|
ICON = ('icons.libreflow', 'kitsu')
|
|
3035
3061
|
|
|
@@ -3044,10 +3070,10 @@ class UploadPlayblastToKitsu(flow.Action):
|
|
|
3044
3070
|
comment = flow.SessionParam('', PresetSessionValue).ui(editor='textarea')
|
|
3045
3071
|
|
|
3046
3072
|
with flow.group("Advanced"):
|
|
3047
|
-
normalize_movie = flow.
|
|
3073
|
+
normalize_movie = flow.Param(False, NormalizeMovieValue).ui(editor='bool')
|
|
3048
3074
|
|
|
3049
3075
|
def __init__(self, parent, name):
|
|
3050
|
-
super(
|
|
3076
|
+
super().__init__(parent, name)
|
|
3051
3077
|
self._kitsu_entity = None
|
|
3052
3078
|
self.forced = False
|
|
3053
3079
|
|
|
@@ -3062,6 +3088,17 @@ class UploadPlayblastToKitsu(flow.Action):
|
|
|
3062
3088
|
|
|
3063
3089
|
return self._kitsu_entity
|
|
3064
3090
|
|
|
3091
|
+
def preview_type(self):
|
|
3092
|
+
extension = (self._file.format.get() or '').lower()
|
|
3093
|
+
if extension in ('psd', 'psb'):
|
|
3094
|
+
return PreviewType.LAYERED_IMAGE
|
|
3095
|
+
|
|
3096
|
+
mime_type, _encoding = mimetypes.guess_type(f'preview.{extension}')
|
|
3097
|
+
if mime_type is not None and mime_type.startswith('image/'):
|
|
3098
|
+
return PreviewType.IMAGE
|
|
3099
|
+
|
|
3100
|
+
return PreviewType.MOVIE
|
|
3101
|
+
|
|
3065
3102
|
def allow_context(self, context):
|
|
3066
3103
|
kitsu_config = self.root().project().kitsu_config()
|
|
3067
3104
|
return (
|
|
@@ -3120,13 +3157,17 @@ class UploadPlayblastToKitsu(flow.Action):
|
|
|
3120
3157
|
task_type = self.target_task_type.get()
|
|
3121
3158
|
kitsu_entity = self._ensure_kitsu_entity()
|
|
3122
3159
|
|
|
3123
|
-
msg = "<h2>Upload
|
|
3160
|
+
msg = "<h2>Upload preview to Kitsu</h2>"
|
|
3161
|
+
|
|
3162
|
+
if kitsu_entity is None:
|
|
3163
|
+
msg += f"<h3><font color=#FF584D>The Kitsu entity {self._file.display_name.get()} belongs to couldn't be detected. Please contact the support on the chat.</font></h3>"
|
|
3164
|
+
self.message.set(msg)
|
|
3165
|
+
return False
|
|
3124
3166
|
|
|
3125
|
-
if
|
|
3167
|
+
if not task_type:
|
|
3126
3168
|
msg += (
|
|
3127
|
-
"<h3><font color=#FF584D>
|
|
3128
|
-
"
|
|
3129
|
-
"support on the chat.</font></h3>" % self._file.display_name.get()
|
|
3169
|
+
"<h3><font color=#FF584D>This file is not linked to any "
|
|
3170
|
+
"task on Kitsu.</font></h3>"
|
|
3130
3171
|
)
|
|
3131
3172
|
self.message.set(msg)
|
|
3132
3173
|
return False
|
|
@@ -3134,22 +3175,16 @@ class UploadPlayblastToKitsu(flow.Action):
|
|
|
3134
3175
|
# Check if current user is assigned to a Kitsu task this file is made for
|
|
3135
3176
|
kitsu_api = self.root().project().kitsu_api()
|
|
3136
3177
|
user = kitsu_api.get_user()
|
|
3137
|
-
task = kitsu_api.get_task(kitsu_entity, task_type)
|
|
3138
3178
|
|
|
3139
3179
|
if user is None:
|
|
3140
|
-
msg += (
|
|
3141
|
-
"<h3><font color=#FF584D>It seems you (%s) have no "
|
|
3142
|
-
"user profile on Kitsu. Please contact the "
|
|
3143
|
-
"support on the chat.</font></h3>" % self.root().project().get_user_name()
|
|
3144
|
-
)
|
|
3180
|
+
msg += f"<h3><font color=#FF584D>It seems you ({self.root().project().get_user_name()}) have no user profile on Kitsu. Please contact the support on the chat.</font></h3>"
|
|
3145
3181
|
self.message.set(msg)
|
|
3146
3182
|
return False
|
|
3147
3183
|
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
)
|
|
3184
|
+
try:
|
|
3185
|
+
task = kitsu_api.get_task(kitsu_entity, task_type)
|
|
3186
|
+
except KitsuTaskError as e:
|
|
3187
|
+
msg += f"<h3><font color=#FF584D>{e.user_message}</font></h3>"
|
|
3153
3188
|
self.message.set(msg)
|
|
3154
3189
|
return False
|
|
3155
3190
|
|
|
@@ -3159,11 +3194,7 @@ class UploadPlayblastToKitsu(flow.Action):
|
|
|
3159
3194
|
|
|
3160
3195
|
if not is_assigned:
|
|
3161
3196
|
if user_role not in ['admin', 'manager']:
|
|
3162
|
-
msg += (
|
|
3163
|
-
"<h3><font color=#FF584D>You (%s) are not assigned to "
|
|
3164
|
-
"the task this file has been created for.</font></h3>"
|
|
3165
|
-
% self.root().project().get_user_name()
|
|
3166
|
-
)
|
|
3197
|
+
msg += f"<h3><font color=#FF584D>You ({self.root().project().get_user_name()}) are not assigned to the task this file has been created for.</font></h3>"
|
|
3167
3198
|
self.message.set(msg)
|
|
3168
3199
|
return False
|
|
3169
3200
|
else:
|
|
@@ -3171,13 +3202,13 @@ class UploadPlayblastToKitsu(flow.Action):
|
|
|
3171
3202
|
'admin': 'studio manager',
|
|
3172
3203
|
'manager': 'supervisor'
|
|
3173
3204
|
}
|
|
3174
|
-
msg +=
|
|
3175
|
-
"<h3>As %s, you can upload a preview for this file.</h3>"
|
|
3176
|
-
% user_roles[user_role]
|
|
3177
|
-
)
|
|
3205
|
+
msg += f"<h3>As {user_roles[user_role]}, you can upload a preview for this file.</h3>"
|
|
3178
3206
|
|
|
3179
3207
|
# Check is the number of frames in the file is the same as the shot was set on Kitsu
|
|
3180
|
-
if
|
|
3208
|
+
if (
|
|
3209
|
+
self.preview_type() is PreviewType.MOVIE
|
|
3210
|
+
and kitsu_entity.get("type", None) == "Shot"
|
|
3211
|
+
):
|
|
3181
3212
|
is_greater, message = self._check_frame_count()
|
|
3182
3213
|
if is_greater is False:
|
|
3183
3214
|
self.message.set(message)
|
|
@@ -3208,6 +3239,34 @@ class UploadPlayblastToKitsu(flow.Action):
|
|
|
3208
3239
|
)
|
|
3209
3240
|
self.current_task_status.set(task_status)
|
|
3210
3241
|
|
|
3242
|
+
def _prepare_preview(self, revision, tmp_dir):
|
|
3243
|
+
if self.preview_type() is not PreviewType.LAYERED_IMAGE:
|
|
3244
|
+
return revision.get_path()
|
|
3245
|
+
|
|
3246
|
+
file_name = os.path.splitext(self._file.display_name.get())[0]
|
|
3247
|
+
png_path = os.path.join(tmp_dir, f'{file_name}.png')
|
|
3248
|
+
|
|
3249
|
+
try:
|
|
3250
|
+
self._flatten_layered_image(revision.get_path(), png_path)
|
|
3251
|
+
except Exception as e:
|
|
3252
|
+
self.root().session().log_error(traceback.format_exc())
|
|
3253
|
+
self.message.set(
|
|
3254
|
+
"<h2>Upload preview to Kitsu</h2>"
|
|
3255
|
+
f"<font color=#FF584D>The file couldn't be converted to PNG: {e}</font>"
|
|
3256
|
+
)
|
|
3257
|
+
return None
|
|
3258
|
+
|
|
3259
|
+
return png_path
|
|
3260
|
+
|
|
3261
|
+
def _flatten_layered_image(self, source_path, png_path):
|
|
3262
|
+
from psd_tools import PSDImage
|
|
3263
|
+
|
|
3264
|
+
psd = PSDImage.open(source_path)
|
|
3265
|
+
image = psd.topil() if psd.has_preview() else psd.composite()
|
|
3266
|
+
if image.mode not in ('RGB', 'RGBA'):
|
|
3267
|
+
image = image.convert('RGBA')
|
|
3268
|
+
image.save(png_path)
|
|
3269
|
+
|
|
3211
3270
|
def run(self, button):
|
|
3212
3271
|
if button == 'Cancel':
|
|
3213
3272
|
return
|
|
@@ -3223,7 +3282,10 @@ class UploadPlayblastToKitsu(flow.Action):
|
|
|
3223
3282
|
self.root().session().log_error('No Kitsu entity for file ' + self._file.oid())
|
|
3224
3283
|
return self.get_result(close=False)
|
|
3225
3284
|
|
|
3226
|
-
if
|
|
3285
|
+
if (
|
|
3286
|
+
self.preview_type() is PreviewType.MOVIE
|
|
3287
|
+
and kitsu_entity.get("type", None) == "Shot"
|
|
3288
|
+
):
|
|
3227
3289
|
is_greater, message = self._check_frame_count()
|
|
3228
3290
|
if is_greater is True and not self.forced:
|
|
3229
3291
|
self._file.force_to_upload.warning_message = message
|
|
@@ -3238,199 +3300,38 @@ class UploadPlayblastToKitsu(flow.Action):
|
|
|
3238
3300
|
|
|
3239
3301
|
task_status_data = kitsu_api.get_task_status(short_name=self.target_task_status.names_dict[self.target_task_status.get()])
|
|
3240
3302
|
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3303
|
+
with tempfile.TemporaryDirectory(ignore_cleanup_errors=True) as tmp_dir:
|
|
3304
|
+
preview_path = self._prepare_preview(revision, tmp_dir)
|
|
3305
|
+
if preview_path is None:
|
|
3306
|
+
return self.get_result(close=False)
|
|
3307
|
+
|
|
3308
|
+
success = kitsu_api.upload_preview(
|
|
3309
|
+
kitsu_entity=kitsu_entity,
|
|
3310
|
+
task_type_name=self.target_task_type.get(),
|
|
3311
|
+
task_status_name=task_status_data['name'],
|
|
3312
|
+
file_path=preview_path,
|
|
3313
|
+
comment=self.comment.get(),
|
|
3314
|
+
normalize_movie=(
|
|
3315
|
+
self.preview_type() is PreviewType.MOVIE
|
|
3316
|
+
and self.normalize_movie.get()
|
|
3317
|
+
)
|
|
3318
|
+
)
|
|
3249
3319
|
|
|
3250
3320
|
if not success:
|
|
3251
|
-
self.message.set(
|
|
3252
|
-
"<h2>Upload
|
|
3321
|
+
self.message.set(
|
|
3322
|
+
"<h2>Upload preview to Kitsu</h2>"
|
|
3253
3323
|
"<font color=#FF584D>An error occured "
|
|
3254
3324
|
"while uploading the preview.</font>"
|
|
3255
|
-
)
|
|
3325
|
+
)
|
|
3256
3326
|
return self.get_result(close=False)
|
|
3257
3327
|
|
|
3258
3328
|
revision.set_status('on_kitsu')
|
|
3259
3329
|
if self._file.source_file.get() is not None :
|
|
3260
3330
|
source_file_revision.set_status('on_kitsu')
|
|
3261
3331
|
|
|
3262
|
-
if self.root().project().get_current_site().auto_upload_kitsu_playblasts.get():
|
|
3263
|
-
revision.upload.run('Confirm')
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
class UploadPNGToKitsu(UploadPlayblastToKitsu):
|
|
3267
|
-
'''
|
|
3268
|
-
Export a PNG file from a Photoshop scene and upload it to Kitsu.
|
|
3269
|
-
'''
|
|
3270
|
-
|
|
3271
|
-
ICON = ('icons.libreflow', 'kitsu')
|
|
3272
|
-
|
|
3273
|
-
_file = flow.Parent()
|
|
3274
|
-
_entity = flow.Parent(5)
|
|
3275
|
-
|
|
3276
|
-
revision_name = flow.Param(None, FileRevisionNameChoiceValue)
|
|
3277
|
-
kitsu_settings = flow.Label('<h3>Kitsu settings</h3>').ui(icon=('icons.libreflow', 'kitsu'))
|
|
3278
|
-
current_task_status = flow.Computed().ui(hidden=True)
|
|
3279
|
-
target_task_type = flow.Param(None, KitsuTaskTypes).watched().ui(label="Task Type")
|
|
3280
|
-
target_task_status = flow.Param(None, KitsuTaskStatus).ui(label="Task Status")
|
|
3281
|
-
comment = flow.SessionParam('', PresetSessionValue).ui(editor='textarea')
|
|
3282
|
-
|
|
3283
|
-
def __init__(self, parent, name):
|
|
3284
|
-
super(UploadPNGToKitsu, self).__init__(parent, name)
|
|
3285
|
-
self._kitsu_entity = None
|
|
3286
|
-
|
|
3287
|
-
def allow_context(self, context):
|
|
3288
|
-
kitsu_config = self.root().project().kitsu_config()
|
|
3289
|
-
return (
|
|
3290
|
-
context
|
|
3291
|
-
and not self._file.is_empty(on_current_site=True, published_only=True)
|
|
3292
|
-
and kitsu_config.configured.get()
|
|
3293
|
-
# and kitsu_config.is_uploadable(self._file.display_name.get())
|
|
3294
|
-
and self._file.format.get() in ['psd','psb','png','jpg']
|
|
3295
|
-
)
|
|
3296
|
-
|
|
3297
|
-
def _check_kitsu_params(self):
|
|
3298
|
-
# Check if the file is linked to a Kitsu entity
|
|
3299
|
-
task_type = self.target_task_type.get()
|
|
3300
|
-
kitsu_entity = self._ensure_kitsu_entity()
|
|
3301
|
-
|
|
3302
|
-
msg = "<h2>Upload Image to Kitsu<</h2>"
|
|
3303
|
-
|
|
3304
|
-
if kitsu_entity is None or task_type is None:
|
|
3305
|
-
msg += (
|
|
3306
|
-
"<h3><font color=#FF584D>The Kitsu entity %s belongs to "
|
|
3307
|
-
"couldn't be detected. Please contact the "
|
|
3308
|
-
"support on the chat.</font></h3>" % self._file.display_name.get()
|
|
3309
|
-
)
|
|
3310
|
-
self.message.set(msg)
|
|
3311
|
-
return False
|
|
3312
|
-
|
|
3313
|
-
# Check if current user is assigned to a Kitsu task this file is made for
|
|
3314
|
-
kitsu_api = self.root().project().kitsu_api()
|
|
3315
|
-
user = kitsu_api.get_user()
|
|
3316
|
-
task = kitsu_api.get_task(kitsu_entity, task_type)
|
|
3317
|
-
|
|
3318
|
-
if user is None:
|
|
3319
|
-
msg += (
|
|
3320
|
-
"<h3><font color=#FF584D>It seems you (%s) have no "
|
|
3321
|
-
"user profile on Kitsu. Please contact the "
|
|
3322
|
-
"support on the chat.</font></h3>" % self.root().project().get_user_name()
|
|
3323
|
-
)
|
|
3324
|
-
self.message.set(msg)
|
|
3325
|
-
return False
|
|
3326
|
-
|
|
3327
|
-
if task is None:
|
|
3328
|
-
msg += (
|
|
3329
|
-
"<h3><font color=#FF584D>This file is not linked to any "
|
|
3330
|
-
"task on Kitsu.</font></h3>"
|
|
3331
|
-
)
|
|
3332
|
-
self.message.set(msg)
|
|
3333
|
-
return False
|
|
3334
|
-
|
|
3335
|
-
# Check if user is assigned to the task or have sufficient rights
|
|
3336
|
-
is_assigned = kitsu_api.user_is_assigned(user, task)
|
|
3337
|
-
user_role = user.get('role', None)
|
|
3338
|
-
|
|
3339
|
-
if not is_assigned:
|
|
3340
|
-
if user_role not in ['admin', 'manager']:
|
|
3341
|
-
msg += (
|
|
3342
|
-
"<h3><font color=#FF584D>You (%s) are not assigned to "
|
|
3343
|
-
"the task this file has been created for.</font></h3>"
|
|
3344
|
-
% self.root().project().get_user_name()
|
|
3345
|
-
)
|
|
3346
|
-
self.message.set(msg)
|
|
3347
|
-
return False
|
|
3348
|
-
else:
|
|
3349
|
-
user_roles = {
|
|
3350
|
-
'admin': 'studio manager',
|
|
3351
|
-
'manager': 'supervisor'
|
|
3352
|
-
}
|
|
3353
|
-
msg += (
|
|
3354
|
-
"<h3>As %s, you can upload a preview for this file.</h3>"
|
|
3355
|
-
% user_roles[user_role]
|
|
3356
|
-
)
|
|
3357
|
-
self.message.set(msg)
|
|
3358
|
-
return True
|
|
3359
|
-
|
|
3360
|
-
def run(self, button):
|
|
3361
|
-
if button == 'Cancel':
|
|
3362
|
-
return
|
|
3363
|
-
|
|
3364
|
-
# Convert to png
|
|
3365
|
-
|
|
3366
|
-
rev = self._file.get_revision(self.revision_name.get())
|
|
3367
|
-
path = rev.get_path()
|
|
3368
|
-
|
|
3369
|
-
input_path = path + '[0]'
|
|
3370
|
-
|
|
3371
|
-
output_path = os.path.splitext(path)[0] + '.png'
|
|
3372
|
-
|
|
3373
|
-
convert_args = ['magick']
|
|
3374
|
-
convert_args += ['%s' %input_path]
|
|
3375
|
-
convert_args += ['%s' %output_path]
|
|
3376
|
-
|
|
3377
|
-
process = subprocess.run(convert_args, check=False, shell=True)
|
|
3378
|
-
|
|
3379
|
-
if process.returncode != 0:
|
|
3380
|
-
self.root().session().log_warning('Conversion failed with "magick", fallback to "convert".')
|
|
3381
|
-
|
|
3382
|
-
convert_args = ['convert']
|
|
3383
|
-
convert_args += ['%s' %input_path]
|
|
3384
|
-
convert_args += ['%s' %output_path]
|
|
3385
|
-
|
|
3386
|
-
process = subprocess.run(convert_args, check=True, shell=True)
|
|
3387
|
-
|
|
3388
|
-
if not os.path.exists(output_path):
|
|
3389
|
-
self.message.set((
|
|
3390
|
-
"<h2>Upload playblast to Kitsu</h2>"
|
|
3391
|
-
"<font color=#FF584D>File conversion failed</font>"
|
|
3392
|
-
))
|
|
3393
|
-
return self.get_result(close=False)
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
# Upload to Kitsu
|
|
3397
|
-
|
|
3398
|
-
self.update_presets()
|
|
3399
|
-
|
|
3400
|
-
if not self._check_kitsu_params():
|
|
3401
|
-
self.root().session().log_error('KITSU PARAM ERROR')
|
|
3402
|
-
return self.get_result(close=False)
|
|
3403
|
-
|
|
3404
|
-
kitsu_api = self.root().project().kitsu_api()
|
|
3405
|
-
kitsu_entity = self._ensure_kitsu_entity()
|
|
3406
|
-
|
|
3407
|
-
if kitsu_entity is None:
|
|
3408
|
-
self.root().session().log_error('No Kitsu entity for file ' + self._file.oid())
|
|
3409
|
-
return self.get_result(close=False)
|
|
3410
|
-
|
|
3411
|
-
if self._file.source_file.get() is not None :
|
|
3412
|
-
source_file = self.root().get_object(self._file.source_file.get())
|
|
3413
|
-
source_file_revision = source_file.get_revision(self.revision_name.get())
|
|
3414
|
-
|
|
3415
|
-
task_status_data = kitsu_api.get_task_status(short_name=self.target_task_status.names_dict[self.target_task_status.get()])
|
|
3416
|
-
|
|
3417
|
-
success = kitsu_api.upload_preview(
|
|
3418
|
-
kitsu_entity=kitsu_entity,
|
|
3419
|
-
task_type_name=self.target_task_type.get(),
|
|
3420
|
-
task_status_name=task_status_data['name'],
|
|
3421
|
-
file_path=output_path,
|
|
3422
|
-
comment=self.comment.get(),
|
|
3423
|
-
)
|
|
3424
|
-
|
|
3425
|
-
if not success:
|
|
3426
|
-
self.message.set((
|
|
3427
|
-
"<h2>Upload playblast to Kitsu</h2>"
|
|
3428
|
-
"<font color=#FF584D>An error occured "
|
|
3429
|
-
"while uploading the preview.</font>"
|
|
3430
|
-
))
|
|
3431
|
-
return self.get_result(close=False)
|
|
3432
3332
|
|
|
3433
|
-
|
|
3333
|
+
# Kept for projects overriding the former playblast-only action
|
|
3334
|
+
UploadPlayblastToKitsu = UploadToKitsu
|
|
3434
3335
|
|
|
3435
3336
|
|
|
3436
3337
|
class RenderWithAfterEffect(GenericRunAction):
|
|
@@ -4568,9 +4469,8 @@ class TrackedFile(File):
|
|
|
4568
4469
|
open = flow.Child(OpenTrackedFileAction)
|
|
4569
4470
|
reveal = flow.Child(RevealFileInExplorer).ui(label="Reveal in explorer")
|
|
4570
4471
|
request = flow.Child(RequestTrackedFileAction)
|
|
4571
|
-
upload_playblast = flow.Child(
|
|
4472
|
+
upload_playblast = flow.Child(UploadToKitsu).ui(label='Upload to Kitsu', dialog_size=(600, 510)).injectable()
|
|
4572
4473
|
force_to_upload = flow.Child(ForceToUpload).ui(hidden=True)
|
|
4573
|
-
upload_image = flow.Child(UploadPNGToKitsu).ui(label='Upload to Kitsu', dialog_size=(600, 510))
|
|
4574
4474
|
|
|
4575
4475
|
# Blender
|
|
4576
4476
|
render_blender_playblast = flow.Child(RenderBlenderPlayblast).ui(label='Render playblast')
|
|
@@ -15,6 +15,33 @@ from .maputils import ClearMapAction
|
|
|
15
15
|
from .users import PresetChoiceValue
|
|
16
16
|
|
|
17
17
|
|
|
18
|
+
class KitsuTaskError(Exception):
|
|
19
|
+
"""
|
|
20
|
+
Raised when a Kitsu task can't be retrieved.
|
|
21
|
+
|
|
22
|
+
`user_message` is a plain-text explanation meant to be shown in the UI
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
user_message = "The Kitsu task couldn't be retrieved."
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class KitsuTaskTypeNotFound(KitsuTaskError):
|
|
29
|
+
def __init__(self, task_type_name, available_names):
|
|
30
|
+
super().__init__(
|
|
31
|
+
f"Invalid task type '{task_type_name}'. Should be one of {available_names}."
|
|
32
|
+
)
|
|
33
|
+
self.task_type_name = task_type_name
|
|
34
|
+
self.user_message = f"The task type '{task_type_name}' doesn't exist on Kitsu."
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class KitsuTaskNotFound(KitsuTaskError):
|
|
38
|
+
def __init__(self, entity, task_type_name):
|
|
39
|
+
entity_id = entity["id"] if isinstance(entity, dict) else entity
|
|
40
|
+
super().__init__(f"No '{task_type_name}' task on Kitsu entity {entity_id}.")
|
|
41
|
+
self.task_type_name = task_type_name
|
|
42
|
+
self.user_message = f"This Kitsu entity has no '{task_type_name}' task."
|
|
43
|
+
|
|
44
|
+
|
|
18
45
|
class KitsuAPIWrapper(flow.Object):
|
|
19
46
|
|
|
20
47
|
_server_url = flow.Param("")
|
|
@@ -332,27 +359,19 @@ class KitsuAPIWrapper(flow.Object):
|
|
|
332
359
|
)
|
|
333
360
|
|
|
334
361
|
def get_task(self, entity, task_type_name):
|
|
362
|
+
"""
|
|
363
|
+
Returns the task of the given Kitsu entity.
|
|
364
|
+
"""
|
|
335
365
|
task_type = gazu.task.get_task_type_by_name(task_type_name)
|
|
336
|
-
|
|
337
|
-
# Check if task type is valid
|
|
338
366
|
if task_type is None:
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
f"Invalid task type '{task_type_name}'. "
|
|
343
|
-
"Should be one of " + str(names) + "."
|
|
344
|
-
))
|
|
345
|
-
return None
|
|
346
|
-
|
|
367
|
+
names = [tt["name"] for tt in gazu.task.all_task_types()]
|
|
368
|
+
raise KitsuTaskTypeNotFound(task_type_name, names)
|
|
369
|
+
|
|
347
370
|
task = gazu.task.get_task_by_entity(entity, task_type)
|
|
348
|
-
|
|
349
371
|
if task is None:
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
task = gazu.task.get_task(task['id'])
|
|
354
|
-
|
|
355
|
-
return task
|
|
372
|
+
raise KitsuTaskNotFound(entity, task_type_name)
|
|
373
|
+
|
|
374
|
+
return gazu.task.get_task(task["id"])
|
|
356
375
|
|
|
357
376
|
def get_assign_tasks(self):
|
|
358
377
|
return [task for task in gazu.user.all_tasks_to_do() if task['project_name'] == self._config.project_name.get()]
|
|
@@ -368,7 +387,10 @@ class KitsuAPIWrapper(flow.Object):
|
|
|
368
387
|
shot = self.get_shot_data(shot_name, sequence_name, episode_name)
|
|
369
388
|
|
|
370
389
|
if shot is not None:
|
|
371
|
-
|
|
390
|
+
try:
|
|
391
|
+
task = self.get_task(shot, task_type_name)
|
|
392
|
+
except KitsuTaskError as e:
|
|
393
|
+
self.root().session().log_error(str(e))
|
|
372
394
|
|
|
373
395
|
return task
|
|
374
396
|
|
|
@@ -388,9 +410,10 @@ class KitsuAPIWrapper(flow.Object):
|
|
|
388
410
|
return [ts['name'] for ts in task_statuses]
|
|
389
411
|
|
|
390
412
|
def get_task_current_status(self, entity, task_type_name):
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
413
|
+
try:
|
|
414
|
+
task = self.get_task(entity, task_type_name)
|
|
415
|
+
except KitsuTaskError as e:
|
|
416
|
+
self.root().session().log_error(str(e))
|
|
394
417
|
return None
|
|
395
418
|
|
|
396
419
|
return task['task_status']['name']
|
|
@@ -508,10 +531,14 @@ class KitsuAPIWrapper(flow.Object):
|
|
|
508
531
|
# Get user
|
|
509
532
|
user = self.get_user(user_name)
|
|
510
533
|
|
|
511
|
-
|
|
512
|
-
|
|
534
|
+
if user is None:
|
|
535
|
+
return False
|
|
513
536
|
|
|
514
|
-
|
|
537
|
+
# Get task
|
|
538
|
+
try:
|
|
539
|
+
task = self.get_task(kitsu_entity, task_type_name)
|
|
540
|
+
except KitsuTaskError as e:
|
|
541
|
+
self.root().session().log_error(str(e))
|
|
515
542
|
return False
|
|
516
543
|
|
|
517
544
|
# Add comment with preview
|