mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #1209 from pypeclub/feature/remove_ftrack_mongo_settings
Remove ftrack mongo settings
This commit is contained in:
commit
5d0ef4f89f
3 changed files with 9 additions and 24 deletions
|
|
@ -1,5 +1,7 @@
|
|||
from pype.api import get_system_settings
|
||||
|
||||
PYPE_DATABASE_NAME = "pype"
|
||||
|
||||
|
||||
def get_ftrack_settings():
|
||||
return get_system_settings()["modules"]["ftrack"]
|
||||
|
|
@ -11,6 +13,6 @@ def get_ftrack_url_from_settings():
|
|||
|
||||
def get_ftrack_event_mongo_info():
|
||||
ftrack_settings = get_ftrack_settings()
|
||||
database_name = ftrack_settings["mongo_database_name"]
|
||||
collection_name = ftrack_settings["mongo_collection_name"]
|
||||
database_name = PYPE_DATABASE_NAME
|
||||
collection_name = "ftrack_events"
|
||||
return database_name, collection_name
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@
|
|||
"ftrack_server": "https://pype.ftrackapp.com",
|
||||
"ftrack_actions_path": [],
|
||||
"ftrack_events_path": [],
|
||||
"mongo_database_name": "pype",
|
||||
"mongo_collection_name": "ftrack_events",
|
||||
"intent": {
|
||||
"items": {
|
||||
"-": "-",
|
||||
|
|
|
|||
|
|
@ -35,24 +35,7 @@
|
|||
"object_type": "text"
|
||||
},
|
||||
{
|
||||
"type": "splitter"
|
||||
},
|
||||
{
|
||||
"type": "label",
|
||||
"label": "Ftrack event server advanced settings"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"key": "mongo_database_name",
|
||||
"label": "Event Mongo DB"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"key": "mongo_collection_name",
|
||||
"label": "Events Mongo Collection"
|
||||
},
|
||||
{
|
||||
"type": "splitter"
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"key": "intent",
|
||||
|
|
@ -71,13 +54,15 @@
|
|||
"key": "items"
|
||||
},
|
||||
{
|
||||
"type": "label",
|
||||
"label": " "
|
||||
"type": "separator"
|
||||
},
|
||||
{
|
||||
"key": "default",
|
||||
"type": "text",
|
||||
"label": "Default Intent"
|
||||
},
|
||||
{
|
||||
"type": "separator"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue