#NEWLINE# def put_file( self , fname , req_id = '' , make_public = True ) : #NEWLINE# #INDENT# 'Put file into a subdir keyed by req_id in local store' #NEWLINE# if ( req_id == '' ) : #NEWLINE# #INDENT# req_fname = fname #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# req_fname = get_req_file ( req_id , fname ) #NEWLINE# #UNINDENT# local_store_dir = self . _get_path ( req_id ) #NEWLINE# ( os . mkdir ( local_store_dir ) if ( not os . path . exists ( local_store_dir ) ) else None ) #NEWLINE# shutil . copy ( req_fname , fname ) #NEWLINE# return os . path . join ( local_store_dir , fname )