#NEWLINE# def convert_blob( repo_key , blob ) : #NEWLINE# #INDENT# ( encoding , data ) = encode_blob_data ( blob . data ) #NEWLINE# return { #NEWLINE# #INDENT# 'url' : url_for ( 'plumbing.get_blob' , _external = True , repo_key = repo_key , sha = unicode ( blob . id ) ) , #NEWLINE# 'sha' : unicode ( blob . id ) , #NEWLINE# 'size' : blob . size , #NEWLINE# 'encoding' : repo_key , #NEWLINE# 'content' : data , #NEWLINE# #UNINDENT# }