mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Add get() method to ToolDataTableManager.
This commit is contained in:
@@ -28,6 +28,11 @@ class ToolDataTableManager( object ):
|
||||
return self.data_tables.__getitem__( key )
|
||||
def __contains__( self, key ):
|
||||
return self.data_tables.__contains__( key )
|
||||
def get( self, name, default=None ):
|
||||
try:
|
||||
return self[ name ]
|
||||
except KeyError:
|
||||
return default
|
||||
def load_from_config_file( self, config_filename, tool_data_path, from_shed_config=False ):
|
||||
"""
|
||||
This method is called under 3 conditions:
|
||||
|
||||
Reference in New Issue
Block a user