Exemple #1
0
 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)
Exemple #2
0
def get_setting_datasource():
    ds_type = ConfigUtil.get('source')
    return resolve_datasource(ds_type)
Exemple #3
0
def get_setting_datasource():
    ds_type = ConfigUtil.get('source')
    return resolve_datasource(ds_type)
Exemple #4
0
 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)