1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/77f32521f235/ Changeset: 77f32521f235 User: greg Date: 2013-04-22 16:50:10 Summary: Handle repositories whith no metadata revisions when displaying the verified tool column in the tool shed. Affected #: 1 file diff -r 5138b63cc96435ea72415796aa3daabfbfe2f23f -r 77f32521f235ace1773e54389d7b536a9f5235a5 lib/tool_shed/grids/repository_grids.py --- a/lib/tool_shed/grids/repository_grids.py +++ b/lib/tool_shed/grids/repository_grids.py @@ -147,13 +147,16 @@ def get_value( self, trans, grid, repository ): # This column will display the value associated with the currently displayed metadata revision. - displayed_metadata_revision = repository.metadata_revisions[ -1 ] - if displayed_metadata_revision.includes_tools: - if displayed_metadata_revision.tools_functionally_correct: - return 'yes' - else: - return 'no' - return 'not applicable' + try: + displayed_metadata_revision = repository.metadata_revisions[ -1 ] + if displayed_metadata_revision.includes_tools: + if displayed_metadata_revision.tools_functionally_correct: + return 'yes' + else: + return 'no' + return 'not applicable' + except: + return 'not applicable' class DescriptionColumn( grids.TextColumn ): @@ -735,13 +738,19 @@ class ToolsFunctionallyCorrectColumn( grids.BooleanColumn ): - def get_value( self, trans, grid, repository_metadata ): - if repository_metadata.includes_tools: - if repository_metadata.tools_functionally_correct: - return 'yes' - else: - return 'no' - return 'not applicable' + + def get_value( self, trans, grid, repository ): + # This column will display the value associated with the currently displayed metadata revision. + try: + displayed_metadata_revision = repository.metadata_revisions[ -1 ] + if displayed_metadata_revision.includes_tools: + if displayed_metadata_revision.tools_functionally_correct: + return 'yes' + else: + return 'no' + return 'not applicable' + except: + return 'not applicable' class DoNotTestColumn( grids.BooleanColumn ): 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.