from pyramid.config import Configurator


__all__ = ('main',)


def main(global_config, **settings):
    """Application factory"""
    config = Configurator(settings=settings)
    return config.make_wsgi_app()

from pyramid.config import Configurator
from pyramid.response import Response

__all__ = ('main',)


def convert(request):
    """Convert the POST'd MathML to SVG"""
    return Response()


def main(global_config, **settings):
    """Application factory"""
    config = Configurator(settings=settings)
    config.add_route('convert', '/', request_method='POST')
    config.add_view(convert, route_name='convert')
    return config.make_wsgi_app()

Add the conversion view to the app.
Add the conversion view to the app.

  from pyramid.config import Configurator
+ from pyramid.response import Response
+ 
+ __all__ = ('main',)
  
  
- __all__ = ('main',)
+ def convert(request):
+     """Convert the POST'd MathML to SVG"""
+     return Response()
  
  
  def main(global_config, **settings):
      """Application factory"""
      config = Configurator(settings=settings)
+     config.add_route('convert', '/', request_method='POST')
+     config.add_view(convert, route_name='convert')
      return config.make_wsgi_app()
  
Add the conversion view to the app.
## Code Before:
from pyramid.config import Configurator


__all__ = ('main',)


def main(global_config, **settings):
    """Application factory"""
    config = Configurator(settings=settings)
    return config.make_wsgi_app()

## Instruction:
Add the conversion view to the app.
## Code After:
from pyramid.config import Configurator
from pyramid.response import Response

__all__ = ('main',)


def convert(request):
    """Convert the POST'd MathML to SVG"""
    return Response()


def main(global_config, **settings):
    """Application factory"""
    config = Configurator(settings=settings)
    config.add_route('convert', '/', request_method='POST')
    config.add_view(convert, route_name='convert')
    return config.make_wsgi_app()
