Newer
Older
from traits.api import ABCHasStrictTraits, Instance, List
from .parameters.base_mco_parameter import BaseMCOParameter
"""Base class for the bundle specific MCO models.
This model will also provide, through traits/traitsui magic the View
that will appear in the workflow manager UI.
In your bundle definition, your bundle-specific model must reimplement
this class.
"""
#: A reference to the creating bundle, so that we can
#: retrieve it as the originating factory.
parameters = List(BaseMCOParameter)
def __init__(self, bundle, *args, **kwargs):
self.bundle = bundle
super(BaseMCOModel, self).__init__(*args, **kwargs)