default.py 556 B

123456789101112131415
  1. # -*- coding: utf-8 -*-
  2. # Controller functions would typically be defined in this file but are instead
  3. # imported from a module to enable sharing with the "optimized" application.
  4. import controller
  5. from gluon import current
  6. current.optimized = False # Flag used in controller.py to trigger DAL optimizations.
  7. session.forget(response) # For speed-up when sessions are not needed.
  8. def index():
  9. # The first URL arg specifies the controller function to be executed
  10. # from the controller.py module.
  11. return getattr(controller, request.args(0))()