#NEWLINE# def get_url( cmd , params , nonce = None , secret = None ) : #NEWLINE# #INDENT# if ( not nonce ) : #NEWLINE# #INDENT# nonce = params #NEWLINE# #UNINDENT# signature = get_signature ( params , nonce , cmd ) #NEWLINE# params [ 'signature' ] = signature #NEWLINE# return frappe . utils . get_url ( '' . join ( [ 'api/method/' , cmd , '?' , urllib . urlencode ( params ) ] ) )