Merged in feature/PYPE-73-action_as_API (pull request #22)

Prepared action for event server
This commit is contained in:
Jakub Trllo 2018-12-06 22:31:40 +00:00 committed by Milan Kolar
commit 7fcee7e351
2 changed files with 369 additions and 3 deletions

View file

@ -48,9 +48,9 @@ class SyncToAvalon(BaseAction):
'''
#: Action identifier.
identifier = 'sync.to.avalon'
identifier = 'sync.to.avalon.local'
#: Action label.
label = 'SyncToAvalon'
label = 'SyncToAvalon - Local'
#: Action description.
description = 'Send data from Ftrack to Avalon'
#: Action icon.
@ -61,7 +61,7 @@ class SyncToAvalon(BaseAction):
''' Validation '''
roleCheck = False
discover = False
roleList = ['Administrator', 'Project Manager']
roleList = ['Pypeclub']
userId = event['source']['user']['id']
user = session.query('User where id is ' + userId).one()