def factory_produce(self, config, item_dict): """ Return a mgmtclass forged from item_dict """ new_mgmtclass = mgmtclass.Mgmtclass(config) new_mgmtclass.from_dict(item_dict) return new_mgmtclass
def factory_produce(self, api, item_dict): """ Return a mgmtclass forged from item_dict :param api: TODO :param item_dict: TODO :returns: TODO """ new_mgmtclass = mgmtclass.Mgmtclass(api) new_mgmtclass.from_dict(item_dict) return new_mgmtclass
def new_mgmtclass(self, is_subobject=False): self.log("new_mgmtclass", [is_subobject]) return mgmtclass.Mgmtclass(self._collection_mgr, is_subobject=is_subobject)