mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
renamed class of remove silos doctor, changed icon and descriptions
This commit is contained in:
parent
744859b88f
commit
40ae796b66
2 changed files with 72 additions and 11 deletions
|
|
@ -12,8 +12,9 @@ from avalon import io, inventory, schema
|
|||
from pype.ftrack.lib.io_nonsingleton import DbConnector
|
||||
|
||||
|
||||
class RemoveSilosDoctor(BaseAction):
|
||||
"""This action is to remove silo field from database
|
||||
class PypeUpdateFromV2_2_0(BaseAction):
|
||||
"""This action is to remove silo field from database and changes asset
|
||||
schema to newer version
|
||||
|
||||
WARNING: it is NOT for situations when you want to switch from avalon-core
|
||||
to Pype's avalon-core!!!
|
||||
|
|
@ -22,16 +23,14 @@ class RemoveSilosDoctor(BaseAction):
|
|||
#: Action identifier.
|
||||
identifier = "silos.doctor"
|
||||
#: Action label.
|
||||
label = "Pype Doctor"
|
||||
variant = "- Pype update from v2.2.0 to v2.3.0 or higher"
|
||||
label = "Pype Update"
|
||||
variant = "- v2.2.0 to v2.3.0 or higher"
|
||||
#: Action description.
|
||||
description = (
|
||||
"Use when Pype was updated from v2.2.0 to v2.3.0 or higher"
|
||||
" (Remove silos from Avalon Database)"
|
||||
)
|
||||
description = "Use when Pype was updated from v2.2.0 to v2.3.0 or higher"
|
||||
|
||||
#: roles that are allowed to register this action
|
||||
role_list = ["Pypeclub", "Administrator"]
|
||||
icon = "{}/ftrack/action_icons/PypeDoctor.svg".format(
|
||||
icon = "{}/ftrack/action_icons/PypeUpdate.svg".format(
|
||||
os.environ.get("PYPE_STATICS_SERVER", "")
|
||||
)
|
||||
# connector to MongoDB (Avalon mongo)
|
||||
|
|
@ -53,7 +52,7 @@ class RemoveSilosDoctor(BaseAction):
|
|||
|
||||
items = []
|
||||
item_splitter = {'type': 'label', 'value': '---'}
|
||||
title = "Updated Pype from v 2.2.0 to v2.3.0 or higher (remove silos)"
|
||||
title = "Updated Pype from v 2.2.0 to v2.3.0 or higher"
|
||||
|
||||
items.append({
|
||||
"type": "label",
|
||||
|
|
@ -187,4 +186,4 @@ def register(session, plugins_presets={}):
|
|||
if not isinstance(session, ftrack_api.session.Session):
|
||||
return
|
||||
|
||||
RemoveSilosDoctor(session, plugins_presets).register()
|
||||
PypeUpdateFromV2_2_0(session, plugins_presets).register()
|
||||
|
|
|
|||
62
res/ftrack/action_icons/PypeUpdate.svg
Normal file
62
res/ftrack/action_icons/PypeUpdate.svg
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
||||
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 512 512"
|
||||
>
|
||||
<g>
|
||||
<linearGradient gradientUnits="userSpaceOnUse" id="SVGID_1_" x1="-0.0000027" x2="512" y1="256" y2="256">
|
||||
<stop offset="0" style="stop-color:#c4ef3f"/>
|
||||
<stop offset="1" style="stop-color:#a0ae28"/>
|
||||
</linearGradient><circle cx="256" cy="256" fill="url(#SVGID_1_)" r="256"/>
|
||||
<linearGradient gradientUnits="userSpaceOnUse" id="SVGID_2_" x1="42.6666641" x2="469.3333435" y1="256.0005188" y2="256.0005188">
|
||||
<stop offset="0" style="stop-color:#a0ae28"/>
|
||||
<stop offset="1" style="stop-color:#c4ef3f"/>
|
||||
</linearGradient>
|
||||
<path
|
||||
d="
|
||||
M 256,469.3338623
|
||||
c -117.6315308,0-213.3333435-95.7023926-213.3333435-213.3333435
|
||||
c 0-117.6314545,95.7018051 -213.333313,213.3333435 -213.333313
|
||||
c 117.6362,0,213.3333435,95.7018661,213.3333435,213.333313
|
||||
C 469.3333435,373.6314697,373.6362,469.3338623,256,469.3338623
|
||||
z"
|
||||
fill="url(#SVGID_2_)"
|
||||
/>
|
||||
</g>
|
||||
<g transform="translate(-80.00 -100.00) scale(0.7)">
|
||||
<path id="arrow"
|
||||
fill="#666666" stroke="none"
|
||||
d="M 368.01,367.07
|
||||
C 368.01,367.07 490.00,245.05 490.00,245.05
|
||||
490.00,245.05 612.00,367.06 612.00,367.06
|
||||
612.00,367.06 551.00,367.06 551.00,367.06
|
||||
551.00,367.06 551.00,490.06 551.00,490.06
|
||||
551.00,490.06 429.00,490.07 429.00,490.07
|
||||
429.00,490.07 429.00,367.07 429.00,367.07
|
||||
429.00,367.07 368.01,367.07 368.01,367.07 Z
|
||||
M 429.00,521.05
|
||||
C 429.00,521.05 429.00,551.07 429.00,551.07
|
||||
429.00,551.07 551.00,551.05 551.00,551.05
|
||||
551.00,551.05 551.00,521.07 551.00,521.07
|
||||
551.00,521.07 429.00,521.05 429.00,521.05 Z
|
||||
M 429.00,582.06
|
||||
C 429.00,582.06 429.00,612.06 429.00,612.06
|
||||
429.00,612.06 551.00,612.07 551.00,612.07
|
||||
551.00,612.07 551.00,582.06 551.00,582.06
|
||||
551.00,582.06 429.00,582.06 429.00,582.06 Z
|
||||
M 429.05,642.96
|
||||
C 429.05,642.96 429.04,672.96 429.04,672.96
|
||||
429.04,672.96 551.00,673.05 551.00,673.05
|
||||
551.00,673.05 551.04,642.96 551.04,642.96
|
||||
551.04,642.96 429.05,642.96 429.05,642.96 Z
|
||||
M 429.00,705.06
|
||||
C 429.00,705.06 429.00,735.06 429.00,735.06
|
||||
429.00,735.06 551.00,735.07 551.00,735.07
|
||||
551.00,735.07 551.00,705.05 551.00,705.05
|
||||
551.00,705.05 429.00,705.06 429.00,705.06 Z"
|
||||
/>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.9 KiB |
Loading…
Add table
Add a link
Reference in a new issue