mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
removed rest api usage from muster module
This commit is contained in:
parent
fe63883f96
commit
33a0742b3d
1 changed files with 5 additions and 10 deletions
|
|
@ -2,10 +2,13 @@ import os
|
|||
import json
|
||||
import appdirs
|
||||
import requests
|
||||
from .. import PypeModule, ITrayModule, IRestApi
|
||||
from .. import (
|
||||
PypeModule,
|
||||
ITrayModule
|
||||
)
|
||||
|
||||
|
||||
class MusterModule(PypeModule, ITrayModule, IRestApi):
|
||||
class MusterModule(PypeModule, ITrayModule):
|
||||
"""
|
||||
Module handling Muster Render credentials. This will display dialog
|
||||
asking for user credentials for Muster if not already specified.
|
||||
|
|
@ -71,14 +74,6 @@ class MusterModule(PypeModule, ITrayModule, IRestApi):
|
|||
|
||||
parent.addMenu(menu)
|
||||
|
||||
def rest_api_initialization(self, rest_api_module):
|
||||
"""Implementation of IRestApi interface."""
|
||||
def api_show_login():
|
||||
self.action_show_login.trigger()
|
||||
rest_api_module.register_callback(
|
||||
"/show_login", api_show_login, "muster", "post"
|
||||
)
|
||||
|
||||
def load_credentials(self):
|
||||
"""
|
||||
Get credentials from JSON file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue