#NEWLINE# def GetUrlBase( self , request , response ) : #NEWLINE# #INDENT# 'Trivial implementation of ImagesService::GetUrlBase.\n\n    Args:\n      request: ImagesGetUrlBaseRequest, contains a blobkey to an image\n      response: ImagesGetUrlBaseResponse, contains a url to serve the image\n    ' #NEWLINE# if request . create_secure_url ( ) : #NEWLINE# #INDENT# logging . info ( 'Secure URLs will not be created using the development application server.' ) #NEWLINE# #UNINDENT# entity_info = datastore . Entity ( BLOB_SERVING_URL_KIND , name = request . blob_key ( ) , namespace = '' ) #NEWLINE# entity_info [ 'blob_key' ] = request . blob_key ( ) #NEWLINE# datastore . Put ( entity_info ) #NEWLINE# response . set_url ( ( '%s/_ah/img/%s' % ( request . _host_prefix , request . blob_key ( ) ) ) )