mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #257 from jmchilton/upload_api_fix
Have trans.user_ftp_dir return None instead of error if upload dir unset.
This commit is contained in:
@@ -139,7 +139,11 @@ class ProvidesUserContext( object ):
|
||||
@property
|
||||
def user_ftp_dir( self ):
|
||||
identifier = self.app.config.ftp_upload_dir_identifier
|
||||
return os.path.join( self.app.config.ftp_upload_dir, getattr( self.user, identifier ) )
|
||||
base_dir = self.app.config.ftp_upload_dir
|
||||
if base_dir is None:
|
||||
return None
|
||||
else:
|
||||
return os.path.join( base_dir, getattr( self.user, identifier ) )
|
||||
|
||||
|
||||
class ProvidesHistoryContext( object ):
|
||||
|
||||
Reference in New Issue
Block a user