(self, region_name, service_id, base_uri)
Given the name of a region and a mimic internal service ID, get a
        resource for that service.

        :param unicode region_name: the name of the region that the service
            resource exists within.
        :param unicode service_id: the UUID for the service for the
            specified region
        :param str base_uri: the base uri to use instead of the default -
            most likely comes from a request URI

        :return: A resource.
        :rtype: :obj:`twisted.web.iweb.IResource`
Given the name of a region and a mimic internal service ID, get a
        resource for that service.
Given the name of a region and a mimic internal service ID get a resource for that service .
def service_with_region(self, region_name, service_id, base_uri):
        """
        Given the name of a region and a mimic internal service ID, get a
        resource for that service.

        :param unicode region_name: the name of the region that the service
            resource exists within.
        :param unicode service_id: the UUID for the service for the
            specified region
        :param str base_uri: the base uri to use instead of the default -
            most likely comes from a request URI

        :return: A resource.
        :rtype: :obj:`twisted.web.iweb.IResource`
        """
        if service_id in self._uuid_to_api_internal:
            api = self._uuid_to_api_internal[service_id]
            return api.resource_for_region(
                region_name,
                self.uri_for_service(region_name, service_id, base_uri),
                self.sessions,
            )
def service_with_region ( self , region_name , service_id , base_uri ) : if service_id in self . _uuid_to_api_internal : api = self . _uuid_to_api_internal [ service_id ] return api . resource_for_region ( region_name , self . uri_for_service ( region_name , service_id , base_uri ) , self . sessions , )