mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-10-25 10:24:38 +08:00
Visualizations registry: remove 'show_deprecations until we get a better way to configure that, remove lambdas where builtins are available
This commit is contained in:
@@ -25,9 +25,6 @@ class VisualizationsConfigParser( object ):
|
||||
-- what provides the data
|
||||
-- what information needs to be added to the query string
|
||||
"""
|
||||
#: show/suppress info/warnings about deprecated elements and settings
|
||||
show_deprecations = False
|
||||
|
||||
#: what are the allowed 'entry_point_type' for entry_point elements
|
||||
ALLOWED_ENTRY_POINT_TYPES = ['mako', 'html', 'script']
|
||||
#: what are the allowed href targets when clicking on a visualization anchor
|
||||
@@ -161,8 +158,7 @@ class VisualizationsConfigParser( object ):
|
||||
# (older) mako-only syntax: the template to use in rendering the visualization
|
||||
template = xml_tree.find( 'template' )
|
||||
if template is not None and template.text:
|
||||
if self.show_deprecations:
|
||||
log.info( 'template syntax is deprecated: use entry_point instead' )
|
||||
log.info( 'template syntax is deprecated: use entry_point instead' )
|
||||
return {
|
||||
'type' : 'mako',
|
||||
'file' : template.text,
|
||||
|
||||
@@ -28,8 +28,8 @@ class ResourceParser( object ):
|
||||
primitive_parsers = {
|
||||
'str' : lambda param: galaxy.util.sanitize_html.sanitize_html( param, 'utf-8' ),
|
||||
'bool' : lambda param: galaxy.util.string_as_bool( param ),
|
||||
'int' : lambda param: int( param ),
|
||||
'float' : lambda param: float( param ),
|
||||
'int' : int,
|
||||
'float' : float,
|
||||
# 'date' : lambda param: ,
|
||||
'json' : ( lambda param: galaxy.util.json.loads(
|
||||
galaxy.util.sanitize_html.sanitize_html( param ) ) ),
|
||||
|
||||
Reference in New Issue
Block a user