lims: requests/request_admin controller refactor

A new controller called requests_common now handles all common tasks like create/edit/delete requests & samples. The requests controller has only the grid definition and requests_admin controller has the request_type code and the sequencer data transfer code.
Also fixed a form importer bug in forms.py
This commit is contained in:
Ramkrishna Chakrabarty
2010-06-30 10:46:50 -04:00
parent 8bb1bd4774
commit 45cb09579f
30 changed files with 1900 additions and 3501 deletions
@@ -194,7 +194,7 @@ class DataTransfer(object):
Update the data transfer status for this dataset in the database
'''
try:
log.debug('Setting status "%s" for dataset "%s"' % ( status, str(dataset_index) ) )
log.debug('Setting status "%s" for dataset "%s" of sample "%s"' % ( status, str(dataset_index), str(self.sample_id) ) )
df = from_json_string(self.galaxydb.get_sample_dataset_files(self.sample_id))
if dataset_index == 'All':
for dataset in self.dataset_files:
@@ -28,7 +28,7 @@ class GalaxyDbInterface(object):
def __init__(self, dbstr):
self.dbstr = dbstr
self.db_engine = create_engine(self.dbstr)
# self.db_engine.echo = True
self.db_engine.echo = True
self.metadata = MetaData(self.db_engine)
self.session = sessionmaker(bind=self.db_engine)
self.event_table = Table('sample_event', self.metadata, autoload=True )