Beispiel #1
0
 def get_service_for_given_service_uuid(self):
     service = ServicePublisherRepository(
     ).get_service_for_given_service_uuid(self._org_uuid,
                                          self._service_uuid)
     if not service:
         return None
     service.comments = self.get_service_comments()
     return service.to_dict()
 def get_service_for_given_service_uuid(self):
     service = ServicePublisherRepository(
     ).get_service_for_given_service_uuid(self._org_uuid,
                                          self._service_uuid)
     if not service:
         return None
     service.comments = self.get_service_comments()
     offchain_service_config = ServicePublisherRepository(
     ).get_offchain_service_config(org_uuid=self._org_uuid,
                                   service_uuid=self._service_uuid)
     service_data = service.to_dict()
     if offchain_service_config.configs:
         service_data = self.map_offchain_service_config(
             offchain_service_config, service_data)
     return service_data