lims: added option to rename sequencer datasets by prepending the experiment name.

This commit is contained in:
Ramkrishna Chakrabarty
2010-06-30 14:24:15 -04:00
parent db30b5c4e9
commit dbc3cd95f3
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -1554,6 +1554,7 @@ class RequestEvent( object ):
class RequestType( object ):
rename_dataset_options = Bunch( NO = 'Do not rename',
SAMPLE_NAME = 'Preprend sample name',
EXPERIMENT_NAME = 'Prepend experiment name',
EXPERIMENT_AND_SAMPLE_NAME = 'Prepend experiment and sample name')
permitted_actions = get_permitted_actions( filter='REQUEST_TYPE' )
def __init__(self, name=None, desc=None, request_form=None, sample_form=None,
@@ -673,6 +673,8 @@ class RequestsAdmin( BaseController ):
return sample.name+'_'+name
elif opt == sample.request.type.rename_dataset_options.EXPERIMENT_AND_SAMPLE_NAME:
return sample.request.name+'_'+sample.name+'_'+name
elif opt == sample.request.type.rename_dataset_options.EXPERIMENT_NAME:
return sample.request.name+'_'+name
def __setup_datatx_user(self, trans, library, folder):
'''
This method sets up the datatx user: