1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/ffe1fed76848/
Changeset: ffe1fed76848
User: dan
Date: 2014-05-21 20:24:51
Summary: merge next-stable
Affected #: 1 file
diff -r 6f2455ab4acbce667ff5155fd85fef4d3dacc9cc -r ffe1fed76848569754c81c59fdba999d488782c9 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.
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.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/6f2455ab4acb/
Changeset: 6f2455ab4acb
User: dan
Date: 2014-05-21 20:14:06
Summary: merge next stable
Affected #: 1 file
diff -r eaa335bf43a8b679a2d7f2d5ba701fc2f424a1c2 -r 6f2455ab4acbce667ff5155fd85fef4d3dacc9cc lib/galaxy/util/dbkeys.py
--- a/lib/galaxy/util/dbkeys.py
+++ b/lib/galaxy/util/dbkeys.py
@@ -4,7 +4,6 @@
#dbkeys read from disk using builds.txt
from galaxy.util import dbnames
from galaxy.util.json import from_json_string
-from galaxy.util.odict import odict
import os.path
@@ -16,10 +15,10 @@
self._app = app
self._data_table_name = data_table_name
self._static_chrom_info_path = app.config.len_file_path
- self._static_dbkeys = odict() #need odict to keep ? at top of list
+ # 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:
- for key, value in dbnames:
- self._static_dbkeys[ key ] = value
+ self._static_dbkeys = list( dbnames )
def get_genome_build_names( self, trans=None ):
# FIXME: how to deal with key duplicates?
@@ -42,7 +41,7 @@
for key, chrom_dict in user_keys.iteritems():
rval.append( ( key, "%s (%s) [Custom]" % ( chrom_dict['name'], key ) ) )
# Load old builds.txt static keys
- rval.extend( self._static_dbkeys.items() )
+ rval.extend( self._static_dbkeys )
#load dbkeys from dbkey data table
dbkey_table = self._app.tool_data_tables.get( self._data_table_name, None )
if dbkey_table is not None:
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.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/eaa335bf43a8/
Changeset: eaa335bf43a8
User: davebgx
Date: 2014-05-21 20:11:26
Summary: Add user_info.xml to the .hgignore filters.
Affected #: 1 file
diff -r cc9164a8b545afe0d4132f31d627609ba941d1cb -r eaa335bf43a8b679a2d7f2d5ba701fc2f424a1c2 .hgignore
--- a/.hgignore
+++ b/.hgignore
@@ -35,6 +35,7 @@
tool_shed_webapp.log
tool_shed_webapp.pid
hgweb.config*
+lib/tool_shed/scripts/bootstrap_tool_shed/user_info.xml
# Reports Runtime Files
reports_webapp.lock
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.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/6ee45090d5b1/
Changeset: 6ee45090d5b1
Branch: next-stable
User: dan
Date: 2014-05-21 20:08:04
Summary: Fix for when a dbkey should be displayed multiple times, but with possibly different names.
Affected #: 1 file
diff -r 20227293c9fe496cf0995f7c194969e785d5ff1e -r 6ee45090d5b1ff8e0cd0497930aa0618133c612d lib/galaxy/util/dbkeys.py
--- a/lib/galaxy/util/dbkeys.py
+++ b/lib/galaxy/util/dbkeys.py
@@ -4,7 +4,6 @@
#dbkeys read from disk using builds.txt
from galaxy.util import dbnames
from galaxy.util.json import from_json_string
-from galaxy.util.odict import odict
import os.path
@@ -16,10 +15,10 @@
self._app = app
self._data_table_name = data_table_name
self._static_chrom_info_path = app.config.len_file_path
- self._static_dbkeys = odict() #need odict to keep ? at top of list
+ # 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:
- for key, value in dbnames:
- self._static_dbkeys[ key ] = value
+ self._static_dbkeys = list( dbnames )
def get_genome_build_names( self, trans=None ):
# FIXME: how to deal with key duplicates?
@@ -42,7 +41,7 @@
for key, chrom_dict in user_keys.iteritems():
rval.append( ( key, "%s (%s) [Custom]" % ( chrom_dict['name'], key ) ) )
# Load old builds.txt static keys
- rval.extend( self._static_dbkeys.items() )
+ rval.extend( self._static_dbkeys )
#load dbkeys from dbkey data table
dbkey_table = self._app.tool_data_tables.get( self._data_table_name, None )
if dbkey_table is not None:
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.
1 new commit in galaxy-central:
https://bitbucket.org/galaxy/galaxy-central/commits/cc9164a8b545/
Changeset: cc9164a8b545
User: greg
Date: 2014-05-21 18:29:33
Summary: Make sure a valid object is received when checking certification the Tool Shed's new repository registry.
Affected #: 1 file
diff -r 7eaa7e058c2898b10674b4ca43a0a76e566517c3 -r cc9164a8b545afe0d4132f31d627609ba941d1cb lib/tool_shed/repository_registry.py
--- a/lib/tool_shed/repository_registry.py
+++ b/lib/tool_shed/repository_registry.py
@@ -114,14 +114,17 @@
return ( None, False )
def is_level_one_certified( self, repository_metadata ):
- repository = repository_metadata.repository
- if repository.deprecated or repository.deleted:
- return False
- tuple = ( str( repository.name ), str( repository.user.username ), str( repository_metadata.changeset_revision ) )
- if repository.type in [ rt_util.REPOSITORY_SUITE_DEFINITION ]:
- return tuple in self.certified_level_one_suite_tuples
- else:
- return tuple in self.certified_level_one_repository_and_suite_tuples
+ if repository_metadata:
+ repository = repository_metadata.repository
+ if repository:
+ if repository.deprecated or repository.deleted:
+ return False
+ tuple = ( str( repository.name ), str( repository.user.username ), str( repository_metadata.changeset_revision ) )
+ if repository.type in [ rt_util.REPOSITORY_SUITE_DEFINITION ]:
+ return tuple in self.certified_level_one_suite_tuples
+ else:
+ return tuple in self.certified_level_one_repository_and_suite_tuples
+ return False
def load_repository_and_suite_tuples( self ):
# Load self.certified_level_one_repository_and_suite_tuples and self.certified_level_one_suite_tuples.
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.