fix pype references to openpype in ftrack

This commit is contained in:
Milan Kolar 2021-04-01 23:27:43 +02:00
parent 67ce8840f4
commit 32abd8a980
17 changed files with 23 additions and 23 deletions

View file

@ -38,7 +38,7 @@ class PushHierValuesToNonHier(ServerAction):
"""
identifier = "admin.push_hier_values_to_non_hier"
label = "Pype Admin"
label = "OpenPype Admin"
variant = "- Push Hierarchical values To Non-Hierarchical"
hierarchy_entities_query = (

View file

@ -32,7 +32,7 @@ class SyncToAvalonServer(ServerAction):
#: Action identifier.
identifier = "sync.to.avalon.server"
#: Action label.
label = "Pype Admin"
label = "OpenPype Admin"
variant = "- Sync To Avalon (Server)"
#: Action description.
description = "Send data from Ftrack to Avalon"

View file

@ -148,7 +148,7 @@ class UserAssigmentEvent(BaseEvent):
"""
Get data to fill template from task
.. seealso:: :mod:`pype.api.Anatomy`
.. seealso:: :mod:`openpype.api.Anatomy`
:param task: Task entity
:type task: dict

View file

@ -6,7 +6,7 @@ from openpype.modules.ftrack.lib.avalon_sync import get_pype_attr
class CleanHierarchicalAttrsAction(BaseAction):
identifier = "clean.hierarchical.attr"
label = "Pype Admin"
label = "OpenPype Admin"
variant = "- Clean hierarchical custom attributes"
description = "Unset empty hierarchical attribute values."
icon = statics_icon("ftrack", "action_icons", "PypeAdmin.svg")

View file

@ -17,7 +17,7 @@ This action creates/updates custom attributes.
- `tools` based on tools usages
## Second part is based on json file in ftrack module.
File location: `~/pype/pype/modules/ftrack/ftrack_custom_attributes.json`
File location: `~/OpenPype/pype/modules/ftrack/ftrack_custom_attributes.json`
Data in json file is nested dictionary. Keys in first dictionary level
represents Ftrack entity type (task, show, assetversion, user, list, asset)
@ -33,7 +33,7 @@ dictionary level, task's attributes are nested more.
group (string)
- name of group
- based on attribute `pype.modules.ftrack.lib.CUST_ATTR_GROUP`
- based on attribute `openpype.modules.ftrack.lib.CUST_ATTR_GROUP`
- "pype" by default
*** Required ***************************************************************

View file

@ -8,7 +8,7 @@ class JobKiller(BaseAction):
#: Action identifier.
identifier = 'job.killer'
#: Action label.
label = "Pype Admin"
label = "OpenPype Admin"
variant = '- Job Killer'
#: Action description.
description = 'Killing selected running jobs'

View file

@ -15,7 +15,7 @@ class StoreThumbnailsToAvalon(BaseAction):
# Action identifier
identifier = "store.thubmnail.to.avalon"
# Action label
label = "Pype Admin"
label = "OpenPype Admin"
# Action variant
variant = "- Store Thumbnails to avalon"
# Action description

View file

@ -33,7 +33,7 @@ class SyncToAvalonLocal(BaseAction):
#: Action identifier.
identifier = "sync.to.avalon.local"
#: Action label.
label = "Pype Admin"
label = "OpenPype Admin"
#: Action variant
variant = "- Sync To Avalon (Local)"
#: Action description.

View file

@ -8,7 +8,7 @@ class ActionAskWhereIRun(BaseAction):
ignore_me = True
identifier = 'ask.where.i.run'
label = 'Ask where I run'
description = 'Triggers PC info where user have running Pype'
description = 'Triggers PC info where user have running OpenPype'
icon = statics_icon("ftrack", "action_icons", "ActionAskWhereIRun.svg")
def discover(self, session, entities, event):

View file

@ -15,7 +15,7 @@ class ActionShowWhereIRun(BaseAction):
#: Action label.
label = 'Show where I run'
#: Action description.
description = 'Shows PC info where user have running Pype'
description = 'Shows PC info where user have running OpenPype'
def discover(self, session, entities, event):
""" Hide by default - Should be enabled only if you want to run.

View file

@ -27,8 +27,8 @@ from openpype.modules.ftrack.lib import get_ftrack_event_mongo_info
from openpype.lib import OpenPypeMongoConnection
from openpype.api import Logger
TOPIC_STATUS_SERVER = "pype.event.server.status"
TOPIC_STATUS_SERVER_RESULT = "pype.event.server.status.result"
TOPIC_STATUS_SERVER = "openpype.event.server.status"
TOPIC_STATUS_SERVER_RESULT = "openpype.event.server.status.result"
def check_ftrack_url(url, log_errors=True):
@ -92,7 +92,7 @@ class StatusEventHub(SocketBaseEventHub):
code_name = self._code_name_mapping[code]
if code_name == "connect":
event = ftrack_api.event.base.Event(
topic="pype.status.started",
topic="openpype.status.started",
data={},
source={
"id": self.id,
@ -115,7 +115,7 @@ class StorerEventHub(SocketBaseEventHub):
code_name = self._code_name_mapping[code]
if code_name == "connect":
event = ftrack_api.event.base.Event(
topic="pype.storer.started",
topic="openpype.storer.started",
data={},
source={
"id": self.id,

View file

@ -58,7 +58,7 @@ class SocketThread(threading.Thread):
env = os.environ.copy()
env["OPENPYPE_PROCESS_MONGO_ID"] = str(Logger.mongo_process_id)
# Pype executable (with path to start script if not build)
# OpenPype executable (with path to start script if not build)
args = get_pype_execute_args(
# Add `run` command
"run",

View file

@ -3,7 +3,7 @@ from openpype.lib import PreLaunchHook
from openpype.modules.ftrack import FTRACK_MODULE_DIR
class PrePyhton2Support(PreLaunchHook):
class PrePython2Support(PreLaunchHook):
"""Add python ftrack api module for Python 2 to PYTHONPATH.
Path to vendor modules is added to the beggining of PYTHONPATH.
@ -23,7 +23,7 @@ class PrePyhton2Support(PreLaunchHook):
os.path.join(python_2_vendor, "arrow"),
# `builtins` from `python-future`
# - `python-future` is strict Python 2 module that cause crashes
# of Python 3 scripts executed through pype (burnin script etc.)
# of Python 3 scripts executed through OpenPype (burnin script etc.)
os.path.join(python_2_vendor, "builtins"),
# `backports.functools_lru_cache`
os.path.join(

View file

@ -557,7 +557,7 @@ class BaseHandler(object):
).one()
def get_project_settings_from_event(self, event, project_name):
"""Load or fill pype's project settings from event data.
"""Load or fill OpenPype's project settings from event data.
Project data are stored by ftrack id because in most cases it is
easier to access project id than project name.

View file

@ -46,7 +46,7 @@ def send_status(event):
}
new_event = ftrack_api.event.base.Event(
topic="pype.event.server.status.result",
topic="openpype.event.server.status.result",
data=new_event_data
)

View file

@ -22,7 +22,7 @@ action_identifier = (
)
host_ip = socket.gethostbyname(socket.gethostname())
action_data = {
"label": "Pype Admin",
"label": "OpenPype Admin",
"variant": "- Event server Status ({})".format(host_ip),
"description": "Get Infromation about event server",
"actionIdentifier": action_identifier
@ -322,7 +322,7 @@ def register(session):
"topic=ftrack.action.discover",
server_activity_discover
)
session.event_hub.subscribe("topic=pype.status.started", on_start)
session.event_hub.subscribe("topic=openpype.status.started", on_start)
status_launch_subscription = (
"topic=ftrack.action.launch and data.actionIdentifier={}"

View file

@ -170,7 +170,7 @@ def register(session):
'''Registers the event, subscribing the discover and launch topics.'''
install_db()
session.event_hub.subscribe("topic=*", launch)
session.event_hub.subscribe("topic=pype.storer.started", trigger_sync)
session.event_hub.subscribe("topic=openpype.storer.started", trigger_sync)
session.event_hub.subscribe(
"topic={}".format(TOPIC_STATUS_SERVER), send_status
)