commit/galaxy-central: dannon: Tag manager PEP8.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/53e839193da1/ Changeset: 53e839193da1 User: dannon Date: 2015-01-07 18:26:22+00:00 Summary: Tag manager PEP8. Affected #: 1 file diff -r 504fd0cce279c54003fb9c38ad9107ae9fea6ce6 -r 53e839193da1f58b15834b07a61a3c131267795f lib/galaxy/managers/tags.py --- a/lib/galaxy/managers/tags.py +++ b/lib/galaxy/managers/tags.py @@ -7,7 +7,7 @@ log = logging.getLogger( __name__ ) -#Item-specific information needed to perform tagging. +# Item-specific information needed to perform tagging. class ItemTagAssocInfo( object ): def __init__( self, item_class, tag_assoc_class, item_id_col ): self.item_class = item_class @@ -36,8 +36,8 @@ self.item_tag_assoc_info = {} def set_tags_from_list( self, user, item, new_tags_list ): - #precondition: item is already security checked against user - #precondition: incoming tags is a list of sanitized/formatted strings + # precondition: item is already security checked against user + # precondition: incoming tags is a list of sanitized/formatted strings self.delete_item_tags( user, item ) new_tags_str = ','.join( new_tags_list ) @@ -83,7 +83,7 @@ def get_tool_tags( self ): result_set = self.app.model.context.execute( select( columns=[ self.app.model.ToolTagAssociation.table.c.tag_id ], - from_obj=self.app.model.ToolTagAssociation.table ).distinct() ) + from_obj=self.app.model.ToolTagAssociation.table ).distinct() ) tags = [] for row in result_set: @@ -289,6 +289,7 @@ name_value_pair.append( None ) return name_value_pair + class GalaxyTagManager( TagManager ): def __init__( self, app ): from galaxy import model @@ -313,5 +314,4 @@ class CommunityTagManager( TagManager): def __init__( self, app ): - from galaxy.webapps.tool_shed import model # ?huh? TagManager.__init__( self, app ) 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