mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user