galaxy-dist commit c0eb25264f91: Do not require annotation when editing visualization attributes.
# HG changeset patch -- Bitbucket.org # Project galaxy-dist # URL http://bitbucket.org/galaxy/galaxy-dist/overview # User jeremy goecks <jeremy.goecks@emory.edu> # Date 1279141279 14400 # Node ID c0eb25264f919b2e7cac25b65483aa1ce4c6f54d # Parent 635d6ada4357d7daafb6862758acdf26f94af53f Do not require annotation when editing visualization attributes. --- a/lib/galaxy/web/controllers/visualization.py +++ b/lib/galaxy/web/controllers/visualization.py @@ -373,13 +373,12 @@ class VisualizationController( BaseContr visualization_slug_err = "Visualization identifier must consist of only lowercase letters, numbers, and the '-' character" elif visualization_slug != visualization.slug and trans.sa_session.query( model.Visualization ).filter_by( user=user, slug=visualization_slug, deleted=False ).first(): visualization_slug_err = "Visualization id must be unique" - elif not visualization_annotation: - visualization_annotation_err = "Visualization annotation is required" else: visualization.title = visualization_title visualization.slug = visualization_slug - visualization_annotation = sanitize_html( visualization_annotation, 'utf-8', 'text/html' ) - self.add_item_annotation( trans, visualization, visualization_annotation ) + if visualization_annotation != "": + visualization_annotation = sanitize_html( visualization_annotation, 'utf-8', 'text/html' ) + self.add_item_annotation( trans, visualization, visualization_annotation ) session.flush() # Redirect to visualization list. return trans.response.send_redirect( web.url_for( action='list' ) )
participants (1)
-
commits-noreply@bitbucket.org