#NEWLINE# def _create_remote( self , f ) : #NEWLINE# #INDENT# 'Create the file name valid for the remote server.\n\n        Uses the "local_path" and "remote_path" options.\n        ' #NEWLINE# ret = f #NEWLINE# if vdebug . opts . Options . isset ( 'path_maps' ) : #NEWLINE# #INDENT# sorted_path_maps = sorted ( vdebug . opts . Options . get ( 'path_maps' , dict ) . iteritems ( ) , key = ( lambda l : len ( l [ 0 ] ) ) , reverse = True ) #NEWLINE# for ( remote , local ) in sorted_path_maps : #NEWLINE# #INDENT# if ( local in ret ) : #NEWLINE# #INDENT# vdebug . log . Log ( ( ( 'Replacing local path (%s) ' % f ) + ( 'with remote path (%s)' % remote ) ) , vdebug . log . Logger . DEBUG ) #NEWLINE# ret = ret . replace ( local , remote , 1 ) #NEWLINE# ret = ret . replace ( '\\' , '/' ) #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# if ret . startswith ( '/' ) : #NEWLINE# #INDENT# return ( 'file://' + ret ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return ( 'file:///' + ret )