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:
Carl Eberhard
2015-04-29 14:59:42 -04:00
parent 43a6c0ba21
commit c15573bfee
2 changed files with 3 additions and 7 deletions
@@ -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 ) ) ),