def build_cache_keys(document_locale, document_slug):
 path_hash = hashlib.md5((u'%s/%s' % (document_locale, document_slug)).encode('utf8'))
 base_key = ('kumascript:%s:%%s' % path_hash.hexdigest())
 etag_key = (base_key % 'etag')
 modified_key = (base_key % 'modified')
 body_key = (base_key % 'body')
 errors_key = (base_key % 'errors')
 return (etag_key, modified_key, body_key, errors_key)

def build_cache_keys ( document_locale , document_slug ) : path_hash = hashlib . md5 ( ( u'%s/%s' % ( document_locale , document_slug ) ) . encode ( 'utf8' ) ) base_key = ( 'kumascript:%s:%%s' % path_hash . hexdigest ( ) ) etag_key = ( base_key % 'etag' ) modified_key = ( base_key % 'modified' ) body_key = ( base_key % 'body' ) errors_key = ( base_key % 'errors' ) return ( etag_key , modified_key , body_key , errors_key )
build the cache keys used for kumascript .