예제 #1
0
 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
예제 #2
0
파일: parser.py 프로젝트: crook/storops
 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
예제 #3
0
 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
예제 #4
0
파일: parser.py 프로젝트: crook/storops
 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