#NEWLINE# def convert_repo( repo_key ) : #NEWLINE# #INDENT# description = get_repo_description ( repo_key ) #NEWLINE# return { #NEWLINE# #INDENT# 'name' : repo_key , #NEWLINE# 'full_name' : repo_key , #NEWLINE# 'description' : repo_key , #NEWLINE# 'url' : url_for ( 'porcelain.get_repo_info' , _external = True , repo_key = repo_key ) , #NEWLINE# 'branches_url' : ( url_for ( 'porcelain.get_branches' , _external = True , repo_key = repo_key ) . rstrip ( '/' ) + '{/branch}' ) , #NEWLINE# 'blobs_url' : ( url_for ( 'plumbing.get_blob' , _external = True , repo_key = repo_key , sha = '' ) . rstrip ( '/' ) + '{/sha}' ) , #NEWLINE# 'commits_url' : ( url_for ( 'porcelain.get_commit' , _external = True , repo_key = repo_key , branch_or_tag_or_sha = '' ) . rstrip ( '/' ) + '{/sha}' ) , #NEWLINE# 'git_commits_url' : ( url_for ( 'plumbing.get_commit' , _external = True , repo_key = repo_key , sha = '' ) . rstrip ( '/' ) + '{/sha}' ) , #NEWLINE# 'git_refs_url' : ( url_for ( 'plumbing.get_refs' , _external = True , repo_key = repo_key ) . rstrip ( '/' ) + '{/sha}' ) , #NEWLINE# 'git_tags_url' : ( url_for ( 'plumbing.get_tag' , _external = True , repo_key = repo_key , sha = '' ) . rstrip ( '/' ) + '{/sha}' ) , #NEWLINE# 'tags_url' : url_for ( 'porcelain.get_tags' , _external = True , repo_key = repo_key ) , #NEWLINE# 'trees_url' : ( url_for ( 'plumbing.get_tree' , _external = True , repo_key = repo_key , sha = '' ) . rstrip ( '/' ) + '{/sha}' ) , #NEWLINE# #UNINDENT# }