<s> """<STR_LIT>""" <EOL> def zimbra_to_python ( zimbra_dict , key_attribute = "<STR_LIT:n>" , <EOL> content_attribute = "<STR_LIT>" ) : <EOL> """<STR_LIT>""" <EOL> local_dict = { } <EOL> for item in zimbra_dict : <EOL> local_dict [ item [ key_attribute ] ] = item [ content_attribute ] <EOL> return local_dict <EOL> def get_value ( haystack , needle , key_attribute = "<STR_LIT:n>" , <EOL> content_attribute = "<STR_LIT>" ) : <EOL> """<STR_LIT>""" <EOL> for value in haystack : <EOL> if value [ key_attribute ] == needle : <EOL> return value [ content_attribute ] <EOL> return None </s>
