예제 #1
0
 def _generate_services(self):
     for service_name in services_list:
         normalized_name = normalize_service_name(service_name)
         snake_name = normalized_name.replace('-', '_')
         generated_service = Service(self, normalized_name)
         setattr(self, snake_name, generated_service)
예제 #2
0
 def service_name(cls):
     return normalize_service_name(cls.__name__)
예제 #3
0
 def service(cls):
     if cls._service is None:
         cls._service = normalize_service_name(cls.__name__)
     return cls._service
예제 #4
0
 def service(cls):
     if cls._service is None:
         cls._service = normalize_service_name(cls.__name__)
     return cls._service
예제 #5
0
 def _generate_services(self):
     for service in services_list:
         normalized_name = normalize_service_name(service)
         snake_name = normalized_name.replace('-', '_')
         generated_service = Service(self, normalized_name)
         setattr(self, snake_name, generated_service)
예제 #6
0
 def service_name(cls):
     return normalize_service_name(cls.__name__)