mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Creating Backup
This commit is contained in:
parent
8c093ce2ad
commit
01cf4230ed
2 changed files with 7 additions and 5 deletions
|
|
@ -3,7 +3,7 @@
|
|||
import os
|
||||
import logging
|
||||
import getpass
|
||||
import platform
|
||||
# import platform
|
||||
import ftrack_api
|
||||
import toml
|
||||
from avalon import io, lib, pipeline
|
||||
|
|
@ -33,7 +33,7 @@ class BaseEvent(object):
|
|||
def __init__(self, session):
|
||||
'''Expects a ftrack_api.Session instance'''
|
||||
|
||||
self.logger = logging.getLogger(
|
||||
self.logger = Logger.getLogger(
|
||||
'{0}.{1}'.format(__name__, self.__class__.__name__)
|
||||
)
|
||||
|
||||
|
|
@ -61,7 +61,10 @@ class BaseEvent(object):
|
|||
session.get(self._get_entity_type(entity), entity.get('entityId'))
|
||||
)
|
||||
)
|
||||
|
||||
try:
|
||||
if _entities[0]['project'].entity_type in ['project']:
|
||||
_entities = None
|
||||
_entities = list()
|
||||
return [
|
||||
_entities,
|
||||
event
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import os
|
|||
import sys
|
||||
import ftrack_api
|
||||
from ftrack_event_handler import BaseEvent
|
||||
|
||||
from app import api
|
||||
|
||||
class Test_Event(BaseEvent):
|
||||
|
||||
|
|
@ -18,7 +18,6 @@ class Test_Event(BaseEvent):
|
|||
|
||||
def register(session, **kw):
|
||||
'''Register plugin. Called when used as an plugin.'''
|
||||
|
||||
if not isinstance(session, ftrack_api.session.Session):
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue