def _merge_env(self, env1, env2): env = DataElement() if env1 is not None: env.merge(env1) if env2 is not None: env.merge(env2) return env
def resources(self): if self.parent is None: conf = DataElement() else: conf = self.parent.resources if self.model.resources is not None: conf.merge(self.model.resources) return conf