@blueprint.route('/view-config/<extension_id>', methods=['GET'])
def view_config(extension_id):
 extension = extensions.view.get_extension(extension_id)
 if (extension is None):
  raise ValueError(("Unknown extension '%s'" % extension_id))
 config_form = extension.get_config_form()
 (template, context) = extension.get_config_template(config_form)
 return flask.render_template_string(template, **context)

@ blueprint . route ( '/view-config/<extension_id>' , methods = [ 'GET' ] ) def view_config ( extension_id ) : extension = extensions . view . get_extension ( extension_id ) if ( extension is None ) : raise ValueError ( ( "Unknown extension '%s'" % extension_id ) ) config_form = extension . get_config_form ( ) ( template , context ) = extension . get_config_template ( config_form ) return flask . render_template_string ( template , ** context )
returns a rendering of a view extension configuration template .