Skip to content

Commit

Permalink
SG-34296 - Rebranding (#45)
Browse files Browse the repository at this point in the history
* Change all the shotgrid/shotgun occurrences in the repository.

* Update logos.

* Update text occurrences.

* Update text.

* Update resources.
  • Loading branch information
juanburgosautoglb authored Mar 20, 2024
1 parent dc8922b commit d3dd54d
Show file tree
Hide file tree
Showing 16 changed files with 65 additions and 65 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
[![Linting](https://img.shields.io/badge/PEP8%20by-Hound%20CI-a873d1.svg)](https://houndci.com)

## Documentation
This repository is a part of the ShotGrid Pipeline Toolkit.
This repository is a part of the Flow Production Tracking Toolkit.

- For more information about this app and for release notes, *see the wiki section*.
- For general information and documentation, click here: https://developer.shotgridsoftware.com/d587be80/?title=Integrations+User+Guide
- For information about ShotGrid in general, click here: https://help.autodesk.com/view/SGSUB/ENU
- For information about Flow Production Tracking in general, click here: https://help.autodesk.com/view/SGSUB/ENU

## Using this app in your Setup
All the apps that are part of our standard app suite are pushed to our App Store.
Expand Down
8 changes: 4 additions & 4 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

At Autodesk, we know that the security of your data is critical to your studio’s
operation.
As the industry shifts to the cloud, ShotGrid knows that security and service
As the industry shifts to the cloud, Flow Production Tracking knows that security and service
models are more important than ever.

The confidentiality, integrity, and availability of your content is at the top
of our priority list.
Not only do we have a team of ShotGrid engineers dedicated to platform security
Not only do we have a team of Flow Production Tracking engineers dedicated to platform security
and performance, we are also backed by Autodesk’s security team, also invests
heavily in the security for broad range of industries and customers.
We constantly reassess, develop, and improve our risk management program because
we know that the landscape of security is ever-changing.

If you believe you have found a security vulnerability in any ShotGrid-owned
If you believe you have found a security vulnerability in any Flow Production Tracking-owned
repository, please report it to us as described below.


Expand All @@ -32,4 +32,4 @@ configurations, reproduction steps, exploit code, impact, etc.

## Additional Information

Please check out the [ShotGrid Security White Paper](https://help.autodesk.com/view/SGSUB/ENU/?guid=SG_Administrator_ar_general_security_ar_security_white_paper_html).
Please check out the [Flow Production Tracking Security White Paper](https://help.autodesk.com/view/SGSUB/ENU/?guid=SG_Administrator_ar_general_security_ar_security_white_paper_html).
2 changes: 1 addition & 1 deletion python/setup_project/base_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


class BasePage(QtGui.QWizardPage):
"""Base page for all ShotGrid pages to inherit from."""
"""Base page for all Flow Production Tracking pages to inherit from."""

# by default return the general setting up your project page
_HELP_URL = (
Expand Down
4 changes: 2 additions & 2 deletions python/setup_project/config_location_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ def os_key(element):
# site does not have an uploaded configuration field
ui.select_distributed_config.setEnabled(False)
ui.select_distributed_config.setToolTip(
"Your ShotGrid site is missing a <pre>PipelineConfiguration.uploaded_config</pre> "
"Your Flow Production Tracking site is missing a <pre>PipelineConfiguration.uploaded_config</pre> "
"field, required for distributed configs to work correctly. Please update to "
"a more recent version of ShotGrid."
"a more recent version of Flow Production Tracking."
)

def _update_path_input_state(self):
Expand Down
6 changes: 3 additions & 3 deletions python/setup_project/create_storage_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def __init__(self, existing_storage_names, parent=None):
"""Initialize the create dialog.
:param existing_storage_names: A list of storage names that already
exist either in SG or pre-created by the map widget.
exist either in PTR or pre-created by the map widget.
:param parent: The dialog parent
"""

Expand Down Expand Up @@ -73,8 +73,8 @@ def _validation_check(self):

# case insensitive check against existing storage names. we do this
# separately from the case sensitive check in order to provide the user
# with more info and prevent confusion when they go looking in SG for a
# Foobar storage when it's foobar that's the one that exists. FYI, SG
# with more info and prevent confusion when they go looking in PTR for a
# Foobar storage when it's foobar that's the one that exists. FYI, PTR
# itself does not allow both Foobar and foobar storages.
lc_existing_storage_names = [s.lower() for s in self._existing_storage_names]
if storage_name.lower() in lc_existing_storage_names:
Expand Down
14 changes: 7 additions & 7 deletions python/setup_project/storage_map_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class StorageModel(QtGui.QStandardItemModel):
"""
A simple modle to store all available storages.
Some storages may exists in SG, others may be created/edited/saved via the
Some storages may exists in PTR, others may be created/edited/saved via the
storage map widgets. The model is shared by all map widgets to keep them
in sync as storages are created/updated.
"""
Expand All @@ -66,8 +66,8 @@ def __init__(self, parent):

super(StorageModel, self).__init__(parent)

# query all existing SG storages to include in the model
logger.debug("Querying all SG LocalStorage entries...")
# query all existing PTR storages to include in the model
logger.debug("Querying all PTR LocalStorage entries...")
sg_connection = sgtk.platform.current_engine().shotgun
storages = sg_connection.find(
"LocalStorage",
Expand Down Expand Up @@ -108,7 +108,7 @@ def storages(self):
def add_storage(self, storage):
"""Add a new item to the model for the supplied storage dictionary.
:param dict storage: A standard SG LocalStorage entity dict.
:param dict storage: A standard PTR LocalStorage entity dict.
"""

logger.debug("Adding storage to the model: %s" % (storage,))
Expand All @@ -135,7 +135,7 @@ def update_storage(self, storage_name, storage_data):

class StorageMapPage(BasePage):
"""
Map the required roots for the selected config with SG local storages
Map the required roots for the selected config with PTR local storages
A list of mapping widgets is displayed, one for each root required by the
configuration. The user must create a valid mapping for each required root
Expand All @@ -157,7 +157,7 @@ def __init__(self, parent=None):
self._map_widgets = []
self._required_roots = []

# retrieve a historical mapping of root names to SG storages. these will
# retrieve a historical mapping of root names to PTR storages. these will
# be used to make a best guess if it's not obvious what the mappings
# should be.
logger.debug("Querying historical storage mappings...")
Expand Down Expand Up @@ -343,7 +343,7 @@ def validatePage(self):
)

# try to create the missing path for the current OS. this will
# help ensure the storage specified in SG is valid and the
# help ensure the storage specified in PTR is valid and the
# project data can be written to this root.
try:
ensure_folder_exists(folder)
Expand Down
48 changes: 24 additions & 24 deletions python/setup_project/storage_map_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


class StorageMapWidget(QtGui.QWidget):
"""Allows mapping config storage roots to a SG local storage"""
"""Allows mapping config storage roots to a PTR local storage"""

# emitted when a storage was saved or updated (indicating it was changed in
# some way). useful for to alert other map widgets that may be displaying
Expand All @@ -35,7 +35,7 @@ def __init__(self, storage_model, parent=None):
"""
Initialize the widget.
:param storage_model: The SG model for available local storages.
:param storage_model: The PTR model for available local storages.
:param parent: The parent object for this widget
"""

Expand Down Expand Up @@ -87,17 +87,17 @@ def __init__(self, storage_model, parent=None):

@property
def best_guess(self):
"""The name of the best guess SG storage to associate with this root."""
"""The name of the best guess PTR storage to associate with this root."""
return self._best_guess

@best_guess.setter
def best_guess(self, storage_name):
"""Set the 'best guess' SG storage name to associate with this root."""
"""Set the 'best guess' PTR storage name to associate with this root."""
self._best_guess = storage_name

@property
def root_name(self):
"""The root name being mapped to a SG local storage"""
"""The root name being mapped to a PTR local storage"""
return self._root_name

@root_name.setter
Expand Down Expand Up @@ -125,7 +125,7 @@ def root_info(self, info):
def local_storage(self):
"""
Returns the local storage chosen by the user or None if no storage
has been selected. This will be a standard SG LocalStorage dict.
has been selected. This will be a standard PTR LocalStorage dict.
Will return ``None`` if no local storage selected.
"""
Expand All @@ -150,7 +150,7 @@ def local_storage(self, storage_name):
self.refresh_display()

def mapping_is_valid(self):
"""Checks that the mapped storage is valid and saved in SG."""
"""Checks that the mapped storage is valid and saved in PTR."""

# ensure a local storage is set
local_storage = self.local_storage
Expand Down Expand Up @@ -299,7 +299,7 @@ def refresh_display(self):
self.ui.windows_path_lbl.show()

if storage_data.get("id"):
# this storage exists in SG
# this storage exists in PTR

# show the path display widgets
self.ui.linux_path.show()
Expand Down Expand Up @@ -342,7 +342,7 @@ def refresh_display(self):
self.ui.windows_path_edit.setFocus()

else:
# this is a new storage that hasn't been created in SG yet.
# this is a new storage that hasn't been created in PTR yet.

# show the path edit widgets
self.ui.linux_path_edit.show()
Expand Down Expand Up @@ -432,7 +432,7 @@ def _browse_path(self, platform):
if not folder_path:
return

# create the SG path object. assigning the path to the corresponding
# create the PTR path object. assigning the path to the corresponding
# OS property below will sanitize
sg_path = ShotgunPath()

Expand All @@ -459,7 +459,7 @@ def _create_new_storage(self):
if create_dialog.exec_() == QtGui.QDialog.Accepted:
# user entered a valid storage name. create the skeleton data and
# add it to the storage model. the user will still have to "Save"
# the info to SG when they're finished editing the path(s).
# the info to PTR when they're finished editing the path(s).
new_storage_name = create_dialog.new_storage_name
new_storage = {
"id": None,
Expand Down Expand Up @@ -493,7 +493,7 @@ def _on_path_changed(self, path, platform):
# the name of the storage being edited
storage_name = str(self.ui.storage_select_combo.currentText())

# a temp SG path object used for sanitization
# a temp PTR path object used for sanitization
sg_path = ShotgunPath()

# store the edited path in the appropriate path lookup. sanitize first
Expand All @@ -502,7 +502,7 @@ def _on_path_changed(self, path, platform):
# if the sanitized path differs, update the edit.
if platform.startswith("linux"):
if only_slashes:
# SG path code doesn't like only slashes in a path
# PTR path code doesn't like only slashes in a path
self._linux_path_edit[storage_name] = path
elif path:
sg_path.linux = path # sanitize
Expand All @@ -520,7 +520,7 @@ def _on_path_changed(self, path, platform):
self._linux_path_edit[storage_name] = ""
elif platform == "darwin":
if only_slashes:
# SG path code doesn't like only slashes in a path
# PTR path code doesn't like only slashes in a path
self._mac_path_edit[storage_name] = path
elif path:
sg_path.macosx = path # sanitize
Expand All @@ -538,7 +538,7 @@ def _on_path_changed(self, path, platform):
self._mac_path_edit[storage_name] = ""
elif platform == "win32":
if only_slashes:
# SG path code doesn't like only slashes in a path
# PTR path code doesn't like only slashes in a path
self._windows_path_edit[storage_name] = path
elif path:
sg_path.windows = path # sanitize
Expand All @@ -562,7 +562,7 @@ def _on_storage_save_clicked(self):
"""
The user has clicked the save button.
They want to create a new storage in SG (if no id is defined for the
They want to create a new storage in PTR (if no id is defined for the
storage) or they want to update an existing storage with a path for
the current os.
"""
Expand All @@ -588,11 +588,11 @@ def _do_storage_update_or_save(self):
storage_data = self.local_storage
storage_name = storage_data["code"]

# a SG connect we can use to save/update
# a PTR connect we can use to save/update
sg = sgtk.platform.current_engine().shotgun

if storage_data.get("id"):
# the storage exists in SG. we want to update any edited paths
# the storage exists in PTR. we want to update any edited paths

path_data = {}

Expand All @@ -607,28 +607,28 @@ def _do_storage_update_or_save(self):
storage_name, ""
)

# do the update in SG. this method should be wrapped in a try/except
# do the update in PTR. this method should be wrapped in a try/except
# to handle any issues here.
logger.debug("Updating SG local storage: %s." % (path_data,))
logger.debug("Updating PTR local storage: %s." % (path_data,))
update_data = sg.update("LocalStorage", storage_data["id"], path_data)

# update the path in the storage data
storage_data.update(update_data)
else:
# the storage does not exist in SG. we need to create it with the
# the storage does not exist in PTR. we need to create it with the
# edited OS paths.

# push any edited text into the storage data
storage_data["linux_path"] = self._linux_path_edit.get(storage_name, "")
storage_data["mac_path"] = self._mac_path_edit.get(storage_name, "")
storage_data["windows_path"] = self._windows_path_edit.get(storage_name, "")

# delete the id field as it will be populated for us by SG. if we
# delete the id field as it will be populated for us by PTR. if we
# don't delete it, we get errors.
del storage_data["id"]

# no storage exists in SG. create a new one
logger.debug("Creating SG local storage: %s" % (storage_data,))
# no storage exists in PTR. create a new one
logger.debug("Creating PTR local storage: %s" % (storage_data,))
storage_data = sg.create(
"LocalStorage", storage_data, return_fields=list(storage_data.keys())
)
Expand Down
4 changes: 2 additions & 2 deletions python/ui/resources_rc.py

Large diffs are not rendered by default.

Loading

0 comments on commit d3dd54d

Please sign in to comment.