def get_resource_clz_by_name(self, clz_name): ret = None if isinstance(clz_name, six.string_types): sub_module_names = self._rsc_sub_module_names() for sub_module_name in sub_module_names: ret = get_clz_from_module(sub_module_name, clz_name) if ret is not None: break return ret
def get_enum_by_name(self, clz_name): ret = None if isinstance(clz_name, six.string_types): enum_module_name = self._get_enum_module_name() ret = get_clz_from_module(enum_module_name, clz_name) return ret