commit/galaxy-central: greg: More shed_util refactoring.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/4212a41ba5ee/ changeset: 4212a41ba5ee user: greg date: 2012-11-16 15:19:11 summary: More shed_util refactoring. affected #: 2 files diff -r 4f68935907f4f86313f63cad33a310e65b2ee02c -r 4212a41ba5ee1f2a45f4d5f84c110808b167c87a lib/galaxy/util/shed_util.py --- a/lib/galaxy/util/shed_util.py +++ b/lib/galaxy/util/shed_util.py @@ -596,19 +596,6 @@ fh.write( fctx.data() ) fh.close() return sample_files, deleted_sample_files -def get_repository_files( trans, folder_path ): - contents = [] - for item in os.listdir( folder_path ): - # Skip .hg directories - if str( item ).startswith( '.hg' ): - continue - if os.path.isdir( os.path.join( folder_path, item ) ): - # Append a '/' character so that our jquery dynatree will function properly. - item = '%s/' % item - contents.append( item ) - if contents: - contents.sort() - return contents def get_repository_owner( cleaned_repository_url ): items = cleaned_repository_url.split( 'repos' ) repo_path = items[ 1 ] diff -r 4f68935907f4f86313f63cad33a310e65b2ee02c -r 4212a41ba5ee1f2a45f4d5f84c110808b167c87a lib/galaxy/util/shed_util_common.py --- a/lib/galaxy/util/shed_util_common.py +++ b/lib/galaxy/util/shed_util_common.py @@ -768,6 +768,19 @@ to_html = '%s%s' % ( to_html, to_html_str( large_str ) ) break return to_html +def get_repository_files( trans, folder_path ): + contents = [] + for item in os.listdir( folder_path ): + # Skip .hg directories + if str( item ).startswith( '.hg' ): + continue + if os.path.isdir( os.path.join( folder_path, item ) ): + # Append a '/' character so that our jquery dynatree will function properly. + item = '%s/' % item + contents.append( item ) + if contents: + contents.sort() + return contents def get_repository_in_tool_shed( trans, id ): """Get a repository on the tool shed side from the database via id""" return trans.sa_session.query( trans.model.Repository ).get( trans.security.decode_id( id ) ) Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket