app.py 413 B

123456789
  1. # -*- coding: utf-8 -*-
  2. from gluon import current
  3. # Re-use the controller from the "standard" application.
  4. from applications.standard.modules import controller
  5. current.optimized = True # Flag used in controller.py to trigger DAL optimizations.
  6. # To avoid the overhead of executing a controller, the response is returned here.
  7. raise HTTP(200, getattr(controller, request.function)(), **current.response.headers)