Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Mistral Custom Actions ~ Using Base Classes
import abc
class Action(object):
def run(self):
class ContextAction(Action):
def run(self, context):
class AsyncAction(Action):
def is_sync(self):
"""Returns False if the action is asynchronous, otherwise True."""
return False
Copy link

d0ugal commented Mar 9, 2017

Action would need an is_sync method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment