class TaskExecution(persistence.StatusBasedResource): impl = db.ChangeRevisionMongoDBAccess(wf_db_models.TaskExecutionDB) publisher = None @classmethod def _get_impl(cls): return cls.impl
class ChangeRevFakeModel(Access): impl = db.ChangeRevisionMongoDBAccess(ChangeRevFakeModelDB) @classmethod def _get_impl(cls): return cls.impl @classmethod def _get_by_object(cls, object): return None @classmethod def _get_publisher(cls): return None
class WorkflowExecution(persistence.StatusBasedResource): impl = db.ChangeRevisionMongoDBAccess(wf_db_models.WorkflowExecutionDB) publisher = None @classmethod def _get_impl(cls): return cls.impl @classmethod def _get_publisher(cls): if not cls.publisher: cls.publisher = transport.workflow.WorkflowExecutionPublisher() return cls.publisher