mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-24 02:04:04 +08:00
Merge pull request #4250 from bwlang/spelling_style_fixes
Spacing convention, -> util.asbool, atribute -> attribute
This commit is contained in:
@@ -404,19 +404,19 @@ class LibraryDatasetsController( BaseAPIController, UsesVisualizationMixin ):
|
||||
"""
|
||||
if payload:
|
||||
kwd.update(payload)
|
||||
kwd['space_to_tab'] = False
|
||||
kwd['to_posix_lines'] = True
|
||||
kwd[ 'space_to_tab' ] = False
|
||||
kwd[ 'to_posix_lines' ] = True
|
||||
kwd[ 'dbkey' ] = kwd.get( 'dbkey', '?' )
|
||||
kwd[ 'file_type' ] = kwd.get( 'file_type', 'auto' )
|
||||
kwd['link_data_only'] = 'link_to_files' if util.string_as_bool( kwd.get( 'link_data', False ) ) else 'copy_files'
|
||||
kwd[ 'link_data_only' ] = 'link_to_files' if util.asbool( kwd.get( 'link_data', False ) ) else 'copy_files'
|
||||
encoded_folder_id = kwd.get( 'encoded_folder_id', None )
|
||||
if encoded_folder_id is not None:
|
||||
folder_id = self.folder_manager.cut_and_decode( trans, encoded_folder_id )
|
||||
else:
|
||||
raise exceptions.RequestParameterMissingException( 'The required atribute encoded_folder_id is missing.' )
|
||||
raise exceptions.RequestParameterMissingException( 'The required attribute encoded_folder_id is missing.' )
|
||||
path = kwd.get( 'path', None)
|
||||
if path is None:
|
||||
raise exceptions.RequestParameterMissingException( 'The required atribute path is missing.' )
|
||||
raise exceptions.RequestParameterMissingException( 'The required attribute path is missing.' )
|
||||
folder = self.folder_manager.get( trans, folder_id )
|
||||
|
||||
source = kwd.get( 'source', None )
|
||||
|
||||
Reference in New Issue
Block a user