Merge pull request #4250 from bwlang/spelling_style_fixes

Spacing convention, -> util.asbool, atribute -> attribute
This commit is contained in:
John Chilton
2017-07-05 07:11:15 -04:00
committed by GitHub
@@ -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 )