def tile_key(layer, coord, format, key_prefix):
 name = layer.name()
 tile = ('%(zoom)d/%(column)d/%(row)d' % coord.__dict__)
 key = str(('%(key_prefix)s/%(name)s/%(tile)s.%(format)s' % locals()))
 return key

def tile_key ( layer , coord , format , key_prefix ) : name = layer . name ( ) tile = ( '%(zoom)d/%(column)d/%(row)d' % coord . __dict__ ) key = str ( ( '%(key_prefix)s/%(name)s/%(tile)s.%(format)s' % locals ( ) ) ) return key
return a tile key string .