You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess I'm wondering what the intent around rendering steps.Trigger['schedulerNames'] is. It's listed as a renderable in steps.Trigger.
Lines 71-81 in trigger.py:
def hasRenderable(l):
for s in l:
if IRenderable.providedBy(s):
return True
return False
if not hasRenderable(schedulerNames) and not hasRenderable(unimportantSchedulerNames):
if not set(schedulerNames).issuperset(set(unimportantSchedulerNames)):
config.error(
"unimportantSchedulerNames must be a subset of schedulerNames"
)
This code throws an error when a renderer is passed in; it's not an iterable. If I proceed to comment it out(not using unimportant at the moment), I end up with a 'method' is not subscriptable error. I did manage to achieve the desired behavior by overriding the getSchedulersAndProperties function.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I guess I'm wondering what the intent around rendering steps.Trigger['schedulerNames'] is. It's listed as a renderable in steps.Trigger.
Lines 71-81 in trigger.py:
This code throws an error when a renderer is passed in; it's not an iterable. If I proceed to comment it out(not using unimportant at the moment), I end up with a 'method' is not subscriptable error. I did manage to achieve the desired behavior by overriding the getSchedulersAndProperties function.
Context:
Beta Was this translation helpful? Give feedback.
All reactions