commit/galaxy-central: dan: Provide a visual clue that those odd len files as dbkeys are from the history.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/a8904f154c5a/ Changeset: a8904f154c5a Branch: next-stable User: dan Date: 2014-05-21 20:24:05 Summary: Provide a visual clue that those odd len files as dbkeys are from the history. Affected #: 1 file diff -r 6ee45090d5b1ff8e0cd0497930aa0618133c612d -r a8904f154c5a1d94d8180c75683992a4123caef2 lib/galaxy/util/dbkeys.py --- a/lib/galaxy/util/dbkeys.py +++ b/lib/galaxy/util/dbkeys.py @@ -16,9 +16,10 @@ self._data_table_name = data_table_name self._static_chrom_info_path = app.config.len_file_path # A dbkey can be listed multiple times, but with different names, so we can't use dictionaries for lookups - self._static_dbkeys = [] if load_old_style: self._static_dbkeys = list( dbnames ) + else: + self._static_dbkeys = [] def get_genome_build_names( self, trans=None ): # FIXME: how to deal with key duplicates? @@ -34,7 +35,7 @@ datasets = trans.sa_session.query( self._app.model.HistoryDatasetAssociation ) \ .filter_by( deleted=False, history_id=trans.history.id, extension="len" ) for dataset in datasets: - rval.append( (dataset.dbkey, dataset.name) ) + rval.append( ( dataset.dbkey, "%s (%s) [History]" % ( dataset.name, dataset.dbkey ) ) ) user = trans.get_user() if user and 'dbkeys' in user.preferences: user_keys = from_json_string( user.preferences['dbkeys'] ) 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)
-
commits-noreply@bitbucket.org