#NEWLINE# def _decode_from_mongo( key ) : #NEWLINE# #INDENT# re_dollar = re . compile ( ( '^%s' % base64 . b64encode ( '$' ) ) ) #NEWLINE# re_dot = re . compile ( ( '\\%s' % base64 . b64encode ( '.' ) ) ) #NEWLINE# return reduce ( ( lambda s , c : c [ 0 ] . sub ( c [ 1 ] , s ) ) , [ ( re_dot , '$' ) , ( re_dot , '.' ) ] , key )