#NEWLINE# def options_from_form( self , formdata ) : #NEWLINE# #INDENT# options = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# options [ 'repo_url' ] = formdata . get ( 'repository_url' , [ '' ] ) [ 0 ] . strip ( ) #NEWLINE# if ( not options [ 'repo_url' ] ) : #NEWLINE# #INDENT# raise Exception ( 'You have to provide the URL to a git repository.' ) #NEWLINE# #UNINDENT# return options