app.py 467 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. current.response._view_environment = current.globalenv
  7. # To avoid the overhead of executing a controller, the response is returned here.
  8. raise HTTP(200, getattr(controller, request.function)(), **current.response.headers)