def construct(self): a = [ConfigUtil.get(k, None) for k in self.args] ka = { k: ConfigUtil.get(name, None) for k, name in six.iteritems(self.kwargs) } return self.cls(*a, **ka)
def get_setting_datasource(): ds_type = ConfigUtil.get('source') return resolve_datasource(ds_type)
def construct(self): a = [ConfigUtil.get(k, None) for k in self.args] ka = {k: ConfigUtil.get(name, None) for k, name in self.kwargs.items()} return self.cls(*a, **ka)