libreflow 2.16.2__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.
Files changed (326) hide show
  1. {libreflow-2.16.2 → libreflow-2.17.0}/CHANGELOG.md +20 -0
  2. {libreflow-2.16.2 → libreflow-2.17.0}/PKG-INFO +2 -1
  3. {libreflow-2.16.2 → libreflow-2.17.0}/pyproject.toml +1 -0
  4. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/_version.py +2 -2
  5. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/file.py +113 -215
  6. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/kitsu.py +51 -24
  7. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/mytasks.py +5 -1
  8. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/site.py +0 -2
  9. {libreflow-2.16.2 → libreflow-2.17.0}/.gitignore +0 -0
  10. {libreflow-2.16.2 → libreflow-2.17.0}/.gitlab-ci.yml +0 -0
  11. {libreflow-2.16.2 → libreflow-2.17.0}/AUTHORS +0 -0
  12. {libreflow-2.16.2 → libreflow-2.17.0}/LICENSE +0 -0
  13. {libreflow-2.16.2 → libreflow-2.17.0}/README.md +0 -0
  14. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/__init__.py +0 -0
  15. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/__init__.py +0 -0
  16. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/asset.py +0 -0
  17. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/departments.py +0 -0
  18. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/dependency.py +0 -0
  19. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/entity_manager.py +0 -0
  20. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/filesystem/file.py +0 -0
  21. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/filesystem/filesequence.py +0 -0
  22. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/filesystem/fileset.py +0 -0
  23. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/filesystem/filesystemobject.py +0 -0
  24. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/film.py +0 -0
  25. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/lib.py +0 -0
  26. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/maputils.py +0 -0
  27. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/runactions.py +0 -0
  28. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/runners.py +0 -0
  29. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/search.py +0 -0
  30. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/shot.py +0 -0
  31. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/task.py +0 -0
  32. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/task_manager.py +0 -0
  33. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/__init__.py +0 -0
  34. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/controller.py +0 -0
  35. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/delegate.py +0 -0
  36. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/file.py +0 -0
  37. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/file_cell.py +0 -0
  38. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/file_history.py +0 -0
  39. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/file_list.py +0 -0
  40. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/homepage.py +0 -0
  41. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/importfiles/__init__.py +0 -0
  42. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/importfiles/custom_widget.py +0 -0
  43. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/importfiles/files_list.py +0 -0
  44. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/importfiles/target_wizard.py +0 -0
  45. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/job_queue.py +0 -0
  46. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/mytasks/__init__.py +0 -0
  47. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/mytasks/components.py +0 -0
  48. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/mytasks/edit_dialog.py +0 -0
  49. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/mytasks/file_list.py +0 -0
  50. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/mytasks/mytasks.py +0 -0
  51. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/mytasks/qmodel.py +0 -0
  52. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/qmodel.py +0 -0
  53. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/ui/task.py +0 -0
  54. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/baseflow/users.py +0 -0
  55. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/cli.py +0 -0
  56. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/custom_home/__init__.py +0 -0
  57. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/custom_home/ui.py +0 -0
  58. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/custom_home/wizard.py +0 -0
  59. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/examples/__init__.py +0 -0
  60. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/examples/demoflow/__init__.py +0 -0
  61. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/examples/demoflow/film.py +0 -0
  62. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/examples/demoflow/lib.py +0 -0
  63. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/examples/majorque/__init__.py +0 -0
  64. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/examples/majorque/departments.py +0 -0
  65. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/examples/majorque/file.py +0 -0
  66. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/examples/majorque/film.py +0 -0
  67. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/examples/majorque/kitsu.py +0 -0
  68. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/examples/majorque/lib.py +0 -0
  69. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/examples/majorque/runners.py +0 -0
  70. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/examples/majorque/users.py +0 -0
  71. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/gui.py +0 -0
  72. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/index.py +0 -0
  73. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/jobs_cleaner.py +0 -0
  74. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/jobs_node.py +0 -0
  75. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/__init__.py +0 -0
  76. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/__init__.py +0 -0
  77. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.abc +0 -0
  78. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.aep +0 -0
  79. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.ai +0 -0
  80. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.blend +0 -0
  81. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.fbx +0 -0
  82. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.fla +0 -0
  83. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.jpg +0 -0
  84. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.json +0 -0
  85. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.jsx +0 -0
  86. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.kra +0 -0
  87. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.mov +0 -0
  88. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.mp4 +0 -0
  89. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.nk +0 -0
  90. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.obj +0 -0
  91. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.png +0 -0
  92. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.prproj +0 -0
  93. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.psb +0 -0
  94. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.psd +0 -0
  95. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.tvpp +0 -0
  96. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.txt +0 -0
  97. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.usd +0 -0
  98. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.usda +0 -0
  99. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.usdz +0 -0
  100. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.wav +0 -0
  101. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template.xpix +0 -0
  102. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/file_templates/template_2D.blend +0 -0
  103. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/fonts/SpaceGrotesk-Bold.ttf +0 -0
  104. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/fonts/SpaceGrotesk-Regular.ttf +0 -0
  105. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/fonts/__init__.py +0 -0
  106. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/__init__.py +0 -0
  107. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/applications/__init__.py +0 -0
  108. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/applications/rv.png +0 -0
  109. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/flow/__init__.py +0 -0
  110. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/flow/alembic.png +0 -0
  111. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/flow/explorer.png +0 -0
  112. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/flow/photoshop.png +0 -0
  113. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/flow/quicktime.png +0 -0
  114. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/__init__.py +0 -0
  115. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/add-file.png +0 -0
  116. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/add-folder.png +0 -0
  117. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/arrow-down.png +0 -0
  118. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/arrow-right.png +0 -0
  119. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/check-box-empty-dark.png +0 -0
  120. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/close.png +0 -0
  121. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/duplicate.png +0 -0
  122. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/location-worldwide-disabled.png +0 -0
  123. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/location-worldwide.png +0 -0
  124. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/maximize.png +0 -0
  125. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/menu.png +0 -0
  126. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/menu_dots.png +0 -0
  127. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/minimize.png +0 -0
  128. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/mytasks-disabled.png +0 -0
  129. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/mytasks.png +0 -0
  130. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/nav-arrow-left-disabled.png +0 -0
  131. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/nav-arrow-left.png +0 -0
  132. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/nav-arrow-refresh-disabled.png +0 -0
  133. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/nav-arrow-refresh.png +0 -0
  134. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/nav-arrow-right-disabled.png +0 -0
  135. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/nav-arrow-right.png +0 -0
  136. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/ref-broken.png +0 -0
  137. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/ref.png +0 -0
  138. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/refresh.png +0 -0
  139. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/send.png +0 -0
  140. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/gui/send2.png +0 -0
  141. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/history/__init__.py +0 -0
  142. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/history/check.png +0 -0
  143. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/history/done.png +0 -0
  144. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/history/init.png +0 -0
  145. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/history/on_kitsu.png +0 -0
  146. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/history/retake.png +0 -0
  147. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/history/wfa.png +0 -0
  148. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/history/wip.png +0 -0
  149. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/history/working_copy.png +0 -0
  150. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/history/working_copy_mine.png +0 -0
  151. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/3d-object.png +0 -0
  152. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/__init__.py +0 -0
  153. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/active_site.png +0 -0
  154. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/afterfx.png +0 -0
  155. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/animate.svg +0 -0
  156. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/archive.png +0 -0
  157. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/available.png +0 -0
  158. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/blank.png +0 -0
  159. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/blender.png +0 -0
  160. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/checked-symbol-colored.png +0 -0
  161. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/checked-symbol-owner.png +0 -0
  162. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/checked-symbol.png +0 -0
  163. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/circle-shape-outline.png +0 -0
  164. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/circle-shape-right-eye-outline.png +0 -0
  165. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/circular-shape-right-eye-silhouette.png +0 -0
  166. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/circular-shape-silhouette.png +0 -0
  167. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/clean.png +0 -0
  168. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/clipboard.png +0 -0
  169. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/compare-previews.png +0 -0
  170. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/cross-mark-on-a-black-circle-background-colored.png +0 -0
  171. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/custom_home_star.png +0 -0
  172. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/delete.png +0 -0
  173. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/dependencies.png +0 -0
  174. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/download.png +0 -0
  175. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/downloadable.png +0 -0
  176. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/duplicate.png +0 -0
  177. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/edit-blank.png +0 -0
  178. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/edit-lock-green.png +0 -0
  179. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/edit-lock-red.png +0 -0
  180. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/error.png +0 -0
  181. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/exchange.png +0 -0
  182. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/exclamation-sign-colored.png +0 -0
  183. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/fbx.png +0 -0
  184. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/firefox.png +0 -0
  185. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/hide.png +0 -0
  186. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/history.png +0 -0
  187. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/illustrator.png +0 -0
  188. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/json.png +0 -0
  189. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/jsx.png +0 -0
  190. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu.svg +0 -0
  191. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu_status_done.png +0 -0
  192. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu_status_oklodv.png +0 -0
  193. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu_status_omit.png +0 -0
  194. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu_status_retake.png +0 -0
  195. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu_status_todo.png +0 -0
  196. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu_status_wfa.png +0 -0
  197. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/kitsu_status_wip.png +0 -0
  198. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/krita.png +0 -0
  199. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/lock-green.png +0 -0
  200. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/lock-red.png +0 -0
  201. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/log_out.png +0 -0
  202. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/multi-share-option.png +0 -0
  203. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/nuke.png +0 -0
  204. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/origin-site.png +0 -0
  205. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/padlock.png +0 -0
  206. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/padlock_green.png +0 -0
  207. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/padlock_red.png +0 -0
  208. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/premiere-pro.png +0 -0
  209. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/publish-ae.png +0 -0
  210. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/publish-blender.png +0 -0
  211. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/publish-ps.png +0 -0
  212. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/publish.png +0 -0
  213. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/quicktime.png +0 -0
  214. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/refresh.png +0 -0
  215. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/request.png +0 -0
  216. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/requestable.png +0 -0
  217. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/run.png +0 -0
  218. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/share-option.png +0 -0
  219. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/show.png +0 -0
  220. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/stop.png +0 -0
  221. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/sync.png +0 -0
  222. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/sync_arrow.png +0 -0
  223. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/time_format.png +0 -0
  224. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/tvpaint.png +0 -0
  225. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/unavailable.png +0 -0
  226. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/upload.png +0 -0
  227. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/vscodium.png +0 -0
  228. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/waiting.png +0 -0
  229. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/warning.png +0 -0
  230. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/libreflow/watch.png +0 -0
  231. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/status/__init__.py +0 -0
  232. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/status/done.png +0 -0
  233. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/status/err.png +0 -0
  234. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/status/inv.png +0 -0
  235. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/status/none.png +0 -0
  236. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/status/nys.png +0 -0
  237. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/status/oop.png +0 -0
  238. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/status/rtk.png +0 -0
  239. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/status/rvw.png +0 -0
  240. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/status/wait.png +0 -0
  241. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/status/warn.png +0 -0
  242. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/status/wip.png +0 -0
  243. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/__init__.py +0 -0
  244. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/animation.svg +0 -0
  245. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/clean.svg +0 -0
  246. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/colo.svg +0 -0
  247. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/compositing.svg +0 -0
  248. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/design.svg +0 -0
  249. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/layout.svg +0 -0
  250. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/lighting.svg +0 -0
  251. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/modeling.svg +0 -0
  252. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/rigging.svg +0 -0
  253. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/icons/tasks/shading.svg +0 -0
  254. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/mark_sequence/__init__.py +0 -0
  255. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/mark_sequence/fields/__init__.py +0 -0
  256. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/mark_sequence/fields/default.json +0 -0
  257. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/mark_sequence/fonts/LiberationMono-Regular.ttf +0 -0
  258. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/mark_sequence/fonts/__init__.py +0 -0
  259. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/scripts/__init__.py +0 -0
  260. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/scripts/blender/__init__.py +0 -0
  261. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/scripts/blender/disable_save_keymap.py +0 -0
  262. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/scripts/tvpaint/__init__.py +0 -0
  263. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/scripts/tvpaint/save_dependencies.grg +0 -0
  264. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/styles/__init__.py +0 -0
  265. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/styles/custom_style/__init__.py +0 -0
  266. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/styles/custom_style/custom_style.css +0 -0
  267. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/styles/lfs_tech/__init__.py +0 -0
  268. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/resources/styles/lfs_tech/lfs_tech_style.css +0 -0
  269. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/scripts/__init__.py +0 -0
  270. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/scripts/mark_sequence.py +0 -0
  271. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/scripts/minio_file_downloader.py +0 -0
  272. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/scripts/minio_file_uploader.py +0 -0
  273. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/scripts/minio_progress.py +0 -0
  274. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/scripts/session_worker.py +0 -0
  275. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/session.py +0 -0
  276. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/sync.py +0 -0
  277. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/sync_jobs_cleaner.py +0 -0
  278. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/__init__.py +0 -0
  279. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/b3d.py +0 -0
  280. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/flow/__init__.py +0 -0
  281. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/flow/action_values.py +0 -0
  282. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/flow/context_values.py +0 -0
  283. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/flow/entities.py +0 -0
  284. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/flow/file_processing.py +0 -0
  285. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/flow/import_files.py +0 -0
  286. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/flow/process_files.py +0 -0
  287. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/flow/values.py +0 -0
  288. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/__init__.py +0 -0
  289. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/flow_contextual_dict/__init__.py +0 -0
  290. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/flow_contextual_dict/view/__init__.py +0 -0
  291. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/flow_entities/__init__.py +0 -0
  292. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/flow_entities/entities.py +0 -0
  293. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/jobs/__init__.py +0 -0
  294. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/jobs/demo_flow.py +0 -0
  295. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/jobs/jobs_actor.py +0 -0
  296. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/jobs/jobs_flow.py +0 -0
  297. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/jobs/jobs_flow_worker.py +0 -0
  298. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/jobs/jobs_node.py +0 -0
  299. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/jobs/jobs_view.py +0 -0
  300. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/script_view/__init__.py +0 -0
  301. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/script_view/script_view.py +0 -0
  302. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/subprocess_manager/__init__.py +0 -0
  303. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/subprocess_manager/views/__init__.py +0 -0
  304. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/subprocess_manager/views/subprocess_view.py +0 -0
  305. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/ui/__init__.py +0 -0
  306. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/ui/flow_view.py +0 -0
  307. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/ui/main_window.py +0 -0
  308. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/ui/navigation_control.py +0 -0
  309. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/kabaret/ui/widget_view.py +0 -0
  310. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/os.py +0 -0
  311. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/search/__init__.py +0 -0
  312. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/search/actor.py +0 -0
  313. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/search/data/__init__.py +0 -0
  314. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/__init__.py +0 -0
  315. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/export.png +0 -0
  316. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/filter-disabled.png +0 -0
  317. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/filter-enabled.png +0 -0
  318. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/import.png +0 -0
  319. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/magn-glass.png +0 -0
  320. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/minus-button.png +0 -0
  321. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/plus-button.png +0 -0
  322. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/remove.png +0 -0
  323. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/search/data/icons/run-button.png +0 -0
  324. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/search/view.py +0 -0
  325. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/ui/__init__.py +0 -0
  326. {libreflow-2.16.2 → libreflow-2.17.0}/src/libreflow/utils/ui/file_processing.py +0 -0
@@ -19,6 +19,26 @@ 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
+
22
42
  ## [2.16.2] - 2026-09-16
23
43
 
24
44
  ### Fixed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: libreflow
3
- Version: 2.16.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
@@ -44,6 +44,7 @@ dependencies = [
44
44
  "timeago",
45
45
  "blender-asset-tracer",
46
46
  "psutil",
47
+ "psd-tools>=1.9",
47
48
  "fileseq",
48
49
  "sentry-sdk",
49
50
  ]
@@ -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.16.2'
22
- __version_tuple__ = version_tuple = (2, 16, 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
@@ -3031,7 +3033,29 @@ class ForceToUpload(flow.Action):
3031
3033
  return self._file.upload_playblast.run("Upload")
3032
3034
 
3033
3035
 
3034
- class UploadPlayblastToKitsu(flow.Action):
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
+ """
3035
3059
 
3036
3060
  ICON = ('icons.libreflow', 'kitsu')
3037
3061
 
@@ -3046,10 +3070,10 @@ class UploadPlayblastToKitsu(flow.Action):
3046
3070
  comment = flow.SessionParam('', PresetSessionValue).ui(editor='textarea')
3047
3071
 
3048
3072
  with flow.group("Advanced"):
3049
- normalize_movie = flow.BoolParam(False)
3073
+ normalize_movie = flow.Param(False, NormalizeMovieValue).ui(editor='bool')
3050
3074
 
3051
3075
  def __init__(self, parent, name):
3052
- super(UploadPlayblastToKitsu, self).__init__(parent, name)
3076
+ super().__init__(parent, name)
3053
3077
  self._kitsu_entity = None
3054
3078
  self.forced = False
3055
3079
 
@@ -3064,6 +3088,17 @@ class UploadPlayblastToKitsu(flow.Action):
3064
3088
 
3065
3089
  return self._kitsu_entity
3066
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
+
3067
3102
  def allow_context(self, context):
3068
3103
  kitsu_config = self.root().project().kitsu_config()
3069
3104
  return (
@@ -3122,13 +3157,17 @@ class UploadPlayblastToKitsu(flow.Action):
3122
3157
  task_type = self.target_task_type.get()
3123
3158
  kitsu_entity = self._ensure_kitsu_entity()
3124
3159
 
3125
- msg = "<h2>Upload playblast to Kitsu</h2>"
3160
+ msg = "<h2>Upload preview to Kitsu</h2>"
3126
3161
 
3127
- if kitsu_entity is None or task_type is None:
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
3166
+
3167
+ if not task_type:
3128
3168
  msg += (
3129
- "<h3><font color=#FF584D>The Kitsu entity %s belongs to "
3130
- "couldn't be detected. Please contact the "
3131
- "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>"
3132
3171
  )
3133
3172
  self.message.set(msg)
3134
3173
  return False
@@ -3136,22 +3175,16 @@ class UploadPlayblastToKitsu(flow.Action):
3136
3175
  # Check if current user is assigned to a Kitsu task this file is made for
3137
3176
  kitsu_api = self.root().project().kitsu_api()
3138
3177
  user = kitsu_api.get_user()
3139
- task = kitsu_api.get_task(kitsu_entity, task_type)
3140
3178
 
3141
3179
  if user is None:
3142
- msg += (
3143
- "<h3><font color=#FF584D>It seems you (%s) have no "
3144
- "user profile on Kitsu. Please contact the "
3145
- "support on the chat.</font></h3>" % self.root().project().get_user_name()
3146
- )
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>"
3147
3181
  self.message.set(msg)
3148
3182
  return False
3149
3183
 
3150
- if task is None:
3151
- msg += (
3152
- "<h3><font color=#FF584D>This file is not linked to any "
3153
- "task on Kitsu.</font></h3>"
3154
- )
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>"
3155
3188
  self.message.set(msg)
3156
3189
  return False
3157
3190
 
@@ -3161,11 +3194,7 @@ class UploadPlayblastToKitsu(flow.Action):
3161
3194
 
3162
3195
  if not is_assigned:
3163
3196
  if user_role not in ['admin', 'manager']:
3164
- msg += (
3165
- "<h3><font color=#FF584D>You (%s) are not assigned to "
3166
- "the task this file has been created for.</font></h3>"
3167
- % self.root().project().get_user_name()
3168
- )
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>"
3169
3198
  self.message.set(msg)
3170
3199
  return False
3171
3200
  else:
@@ -3173,13 +3202,13 @@ class UploadPlayblastToKitsu(flow.Action):
3173
3202
  'admin': 'studio manager',
3174
3203
  'manager': 'supervisor'
3175
3204
  }
3176
- msg += (
3177
- "<h3>As %s, you can upload a preview for this file.</h3>"
3178
- % user_roles[user_role]
3179
- )
3205
+ msg += f"<h3>As {user_roles[user_role]}, you can upload a preview for this file.</h3>"
3180
3206
 
3181
3207
  # Check is the number of frames in the file is the same as the shot was set on Kitsu
3182
- if kitsu_entity.get("type", None) == "Shot":
3208
+ if (
3209
+ self.preview_type() is PreviewType.MOVIE
3210
+ and kitsu_entity.get("type", None) == "Shot"
3211
+ ):
3183
3212
  is_greater, message = self._check_frame_count()
3184
3213
  if is_greater is False:
3185
3214
  self.message.set(message)
@@ -3210,6 +3239,34 @@ class UploadPlayblastToKitsu(flow.Action):
3210
3239
  )
3211
3240
  self.current_task_status.set(task_status)
3212
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
+
3213
3270
  def run(self, button):
3214
3271
  if button == 'Cancel':
3215
3272
  return
@@ -3225,7 +3282,10 @@ class UploadPlayblastToKitsu(flow.Action):
3225
3282
  self.root().session().log_error('No Kitsu entity for file ' + self._file.oid())
3226
3283
  return self.get_result(close=False)
3227
3284
 
3228
- if kitsu_entity.get("type", None) == "Shot":
3285
+ if (
3286
+ self.preview_type() is PreviewType.MOVIE
3287
+ and kitsu_entity.get("type", None) == "Shot"
3288
+ ):
3229
3289
  is_greater, message = self._check_frame_count()
3230
3290
  if is_greater is True and not self.forced:
3231
3291
  self._file.force_to_upload.warning_message = message
@@ -3240,199 +3300,38 @@ class UploadPlayblastToKitsu(flow.Action):
3240
3300
 
3241
3301
  task_status_data = kitsu_api.get_task_status(short_name=self.target_task_status.names_dict[self.target_task_status.get()])
3242
3302
 
3243
- success = kitsu_api.upload_preview(
3244
- kitsu_entity=kitsu_entity,
3245
- task_type_name=self.target_task_type.get(),
3246
- task_status_name=task_status_data['name'],
3247
- file_path=revision.get_path(),
3248
- comment=self.comment.get(),
3249
- normalize_movie=self.normalize_movie.get()
3250
- )
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
+ )
3251
3319
 
3252
3320
  if not success:
3253
- self.message.set((
3254
- "<h2>Upload playblast to Kitsu</h2>"
3321
+ self.message.set(
3322
+ "<h2>Upload preview to Kitsu</h2>"
3255
3323
  "<font color=#FF584D>An error occured "
3256
3324
  "while uploading the preview.</font>"
3257
- ))
3325
+ )
3258
3326
  return self.get_result(close=False)
3259
3327
 
3260
3328
  revision.set_status('on_kitsu')
3261
3329
  if self._file.source_file.get() is not None :
3262
3330
  source_file_revision.set_status('on_kitsu')
3263
3331
 
3264
- if self.root().project().get_current_site().auto_upload_kitsu_playblasts.get():
3265
- revision.upload.run('Confirm')
3266
-
3267
-
3268
- class UploadPNGToKitsu(UploadPlayblastToKitsu):
3269
- '''
3270
- Export a PNG file from a Photoshop scene and upload it to Kitsu.
3271
- '''
3272
-
3273
- ICON = ('icons.libreflow', 'kitsu')
3274
-
3275
- _file = flow.Parent()
3276
- _entity = flow.Parent(5)
3277
-
3278
- revision_name = flow.Param(None, FileRevisionNameChoiceValue)
3279
- kitsu_settings = flow.Label('<h3>Kitsu settings</h3>').ui(icon=('icons.libreflow', 'kitsu'))
3280
- current_task_status = flow.Computed().ui(hidden=True)
3281
- target_task_type = flow.Param(None, KitsuTaskTypes).watched().ui(label="Task Type")
3282
- target_task_status = flow.Param(None, KitsuTaskStatus).ui(label="Task Status")
3283
- comment = flow.SessionParam('', PresetSessionValue).ui(editor='textarea')
3284
-
3285
- def __init__(self, parent, name):
3286
- super(UploadPNGToKitsu, self).__init__(parent, name)
3287
- self._kitsu_entity = None
3288
-
3289
- def allow_context(self, context):
3290
- kitsu_config = self.root().project().kitsu_config()
3291
- return (
3292
- context
3293
- and not self._file.is_empty(on_current_site=True, published_only=True)
3294
- and kitsu_config.configured.get()
3295
- # and kitsu_config.is_uploadable(self._file.display_name.get())
3296
- and self._file.format.get() in ['psd','psb','png','jpg']
3297
- )
3298
-
3299
- def _check_kitsu_params(self):
3300
- # Check if the file is linked to a Kitsu entity
3301
- task_type = self.target_task_type.get()
3302
- kitsu_entity = self._ensure_kitsu_entity()
3303
-
3304
- msg = "<h2>Upload Image to Kitsu<</h2>"
3305
-
3306
- if kitsu_entity is None or task_type is None:
3307
- msg += (
3308
- "<h3><font color=#FF584D>The Kitsu entity %s belongs to "
3309
- "couldn't be detected. Please contact the "
3310
- "support on the chat.</font></h3>" % self._file.display_name.get()
3311
- )
3312
- self.message.set(msg)
3313
- return False
3314
-
3315
- # Check if current user is assigned to a Kitsu task this file is made for
3316
- kitsu_api = self.root().project().kitsu_api()
3317
- user = kitsu_api.get_user()
3318
- task = kitsu_api.get_task(kitsu_entity, task_type)
3319
-
3320
- if user is None:
3321
- msg += (
3322
- "<h3><font color=#FF584D>It seems you (%s) have no "
3323
- "user profile on Kitsu. Please contact the "
3324
- "support on the chat.</font></h3>" % self.root().project().get_user_name()
3325
- )
3326
- self.message.set(msg)
3327
- return False
3328
-
3329
- if task is None:
3330
- msg += (
3331
- "<h3><font color=#FF584D>This file is not linked to any "
3332
- "task on Kitsu.</font></h3>"
3333
- )
3334
- self.message.set(msg)
3335
- return False
3336
-
3337
- # Check if user is assigned to the task or have sufficient rights
3338
- is_assigned = kitsu_api.user_is_assigned(user, task)
3339
- user_role = user.get('role', None)
3340
-
3341
- if not is_assigned:
3342
- if user_role not in ['admin', 'manager']:
3343
- msg += (
3344
- "<h3><font color=#FF584D>You (%s) are not assigned to "
3345
- "the task this file has been created for.</font></h3>"
3346
- % self.root().project().get_user_name()
3347
- )
3348
- self.message.set(msg)
3349
- return False
3350
- else:
3351
- user_roles = {
3352
- 'admin': 'studio manager',
3353
- 'manager': 'supervisor'
3354
- }
3355
- msg += (
3356
- "<h3>As %s, you can upload a preview for this file.</h3>"
3357
- % user_roles[user_role]
3358
- )
3359
- self.message.set(msg)
3360
- return True
3361
-
3362
- def run(self, button):
3363
- if button == 'Cancel':
3364
- return
3365
-
3366
- # Convert to png
3367
-
3368
- rev = self._file.get_revision(self.revision_name.get())
3369
- path = rev.get_path()
3370
-
3371
- input_path = path + '[0]'
3372
-
3373
- output_path = os.path.splitext(path)[0] + '.png'
3374
-
3375
- convert_args = ['magick']
3376
- convert_args += ['%s' %input_path]
3377
- convert_args += ['%s' %output_path]
3378
-
3379
- process = subprocess.run(convert_args, check=False, shell=True)
3380
-
3381
- if process.returncode != 0:
3382
- self.root().session().log_warning('Conversion failed with "magick", fallback to "convert".')
3383
-
3384
- convert_args = ['convert']
3385
- convert_args += ['%s' %input_path]
3386
- convert_args += ['%s' %output_path]
3387
-
3388
- process = subprocess.run(convert_args, check=True, shell=True)
3389
-
3390
- if not os.path.exists(output_path):
3391
- self.message.set((
3392
- "<h2>Upload playblast to Kitsu</h2>"
3393
- "<font color=#FF584D>File conversion failed</font>"
3394
- ))
3395
- return self.get_result(close=False)
3396
-
3397
-
3398
- # Upload to Kitsu
3399
-
3400
- self.update_presets()
3401
-
3402
- if not self._check_kitsu_params():
3403
- self.root().session().log_error('KITSU PARAM ERROR')
3404
- return self.get_result(close=False)
3405
-
3406
- kitsu_api = self.root().project().kitsu_api()
3407
- kitsu_entity = self._ensure_kitsu_entity()
3408
-
3409
- if kitsu_entity is None:
3410
- self.root().session().log_error('No Kitsu entity for file ' + self._file.oid())
3411
- return self.get_result(close=False)
3412
-
3413
- if self._file.source_file.get() is not None :
3414
- source_file = self.root().get_object(self._file.source_file.get())
3415
- source_file_revision = source_file.get_revision(self.revision_name.get())
3416
-
3417
- task_status_data = kitsu_api.get_task_status(short_name=self.target_task_status.names_dict[self.target_task_status.get()])
3418
-
3419
- success = kitsu_api.upload_preview(
3420
- kitsu_entity=kitsu_entity,
3421
- task_type_name=self.target_task_type.get(),
3422
- task_status_name=task_status_data['name'],
3423
- file_path=output_path,
3424
- comment=self.comment.get(),
3425
- )
3426
-
3427
- if not success:
3428
- self.message.set((
3429
- "<h2>Upload playblast to Kitsu</h2>"
3430
- "<font color=#FF584D>An error occured "
3431
- "while uploading the preview.</font>"
3432
- ))
3433
- return self.get_result(close=False)
3434
3332
 
3435
- rev.set_status('on_kitsu')
3333
+ # Kept for projects overriding the former playblast-only action
3334
+ UploadPlayblastToKitsu = UploadToKitsu
3436
3335
 
3437
3336
 
3438
3337
  class RenderWithAfterEffect(GenericRunAction):
@@ -4570,9 +4469,8 @@ class TrackedFile(File):
4570
4469
  open = flow.Child(OpenTrackedFileAction)
4571
4470
  reveal = flow.Child(RevealFileInExplorer).ui(label="Reveal in explorer")
4572
4471
  request = flow.Child(RequestTrackedFileAction)
4573
- upload_playblast = flow.Child(UploadPlayblastToKitsu).ui(label='Upload to Kitsu', dialog_size=(600, 510)).injectable()
4472
+ upload_playblast = flow.Child(UploadToKitsu).ui(label='Upload to Kitsu', dialog_size=(600, 510)).injectable()
4574
4473
  force_to_upload = flow.Child(ForceToUpload).ui(hidden=True)
4575
- upload_image = flow.Child(UploadPNGToKitsu).ui(label='Upload to Kitsu', dialog_size=(600, 510))
4576
4474
 
4577
4475
  # Blender
4578
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
- task_types = gazu.task.all_task_statuses()
340
- names = [tt['name'] for tt in task_types]
341
- self.root().session().log_error((
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
- self.root().session().log_error("Invalid Kitsu entity")
351
- return None
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
- task = self.get_task(shot, task_type_name)
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
- task = self.get_task(entity, task_type_name)
392
-
393
- if task is None:
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
- # Get task
512
- task = self.get_task(kitsu_entity, task_type_name)
534
+ if user is None:
535
+ return False
513
536
 
514
- if task is None or user is None:
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
@@ -1,6 +1,7 @@
1
1
  import re
2
2
  import gazu
3
3
  from kabaret import flow
4
+ from .kitsu import KitsuTaskError
4
5
  from .users import PresetSessionValue
5
6
 
6
7
 
@@ -326,7 +327,10 @@ class MyTasksMap(flow.DynamicMap):
326
327
  (name for name in kitsu_tasks if task_name.lower() in name.lower()), task_name
327
328
  )
328
329
 
329
- task_data = self._action.kitsu.gazu_api.get_task(item, kitsu_task_name)
330
+ try:
331
+ task_data = self._action.kitsu.gazu_api.get_task(item, kitsu_task_name)
332
+ except KitsuTaskError:
333
+ task_data = None
330
334
 
331
335
  # If not found, we add the bookmark as it is
332
336
  if task_data is None:
@@ -1473,8 +1473,6 @@ class WorkingSite(Site):
1473
1473
  )
1474
1474
  )
1475
1475
 
1476
- auto_upload_kitsu_playblasts = Property().ui(editor='bool')
1477
-
1478
1476
  root_folder = flow.Computed(cached=True).ui(editor='path')
1479
1477
  root_windows_folder = Property().ui(editor='path')
1480
1478
  root_linux_folder = Property().ui(editor='path')
File without changes
File without changes
File without changes
File without changes
File without changes