def GetUrlBase(self, request, response):
    if request.create_secure_url():
      logging.info("Secure URLs will not be created using the development "
                   "application server.")

    entity_info = datastore.Entity(BLOB_SERVING_URL_KIND,
                                   name=request.blob_key(),
                                   namespace="")
    entity_info["blob_key"] = request.blob_key()
    datastore.Put(entity_info)

    response.set_url("%s/_ah/img/%s" % (self._host_prefix, request.blob_key()))
Trivial implementation of ImagesService::GetUrlBase.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/images/images_blob_stub.py/ImagesBlobStub.GetUrlBase