def __get_backend(db_section, sync_section, backend_package): type = ConfigDAO().config.get(db_section, "type") conn = Clazz.get_instance("%s.%s.%s" % (backend_package, type, type)) return conn(db_section, sync_section)
def __get_convert_instance(clazz): return Clazz.get_instance("converter.%s.%s" % (clazz, clazz))