Package web2py :: Package gluon

[hide private]
[frames] | no frames]

# Source Code for Package web2py.gluon

     1  #!/usr/bin/env python
     2  # -*- coding: utf-8 -*-
     3  """
     4  This file is part of the web2py Web Framework
     5  Copyrighted by Massimo Di Pierro <mdipierro@cs.depaul.edu>
     6  License: LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
     7
     8
     9  Web2Py framework modules
    10  ========================
    11  """
    12
    13  __all__ = ['A', 'B', 'BEAUTIFY', 'BODY', 'BR', 'CAT', 'CENTER', 'CLEANUP', 'CODE', 'CRYPT', 'DAL', 'DIV', 'EM', 'EMBED', 'FIELDSET', 'FORM', 'Field', 'H1', 'H2', 'H3', 'H4', 'H5', 'H6', 'HEAD', 'HR', 'HTML', 'HTTP', 'I', 'IFRAME', 'IMG', 'INPUT', 'IS_ALPHANUMERIC', 'IS_DATE', 'IS_DATETIME', 'IS_DATETIME_IN_RANGE', 'IS_DATE_IN_RANGE', 'IS_DECIMAL_IN_RANGE', 'IS_EMAIL', 'IS_EMPTY_OR', 'IS_EQUAL_TO', 'IS_EXPR', 'IS_FLOAT_IN_RANGE', 'IS_IMAGE', 'IS_INT_IN_RANGE', 'IS_IN_DB', 'IS_IN_SET', 'IS_IPV4', 'IS_LENGTH', 'IS_LIST_OF', 'IS_LOWER', 'IS_MATCH', 'IS_NOT_EMPTY', 'IS_NOT_IN_DB', 'IS_NULL_OR', 'IS_SLUG', 'IS_STRONG', 'IS_TIME', 'IS_UPLOAD_FILENAME', 'IS_UPPER', 'IS_URL', 'LABEL', 'LEGEND', 'LI', 'LINK', 'LOAD', 'MARKMIN', 'MENU', 'META', 'OBJECT', 'OL', 'ON', 'OPTGROUP', 'OPTION', 'P', 'PRE', 'SCRIPT', 'SELECT', 'SPAN', 'SQLFORM', 'SQLTABLE', 'STYLE', 'TABLE', 'TAG', 'TBODY', 'TD', 'TEXTAREA', 'TFOOT', 'TH', 'THEAD', 'TITLE', 'TR', 'TT', 'UL', 'URL', 'XHTML', 'XML','redirect','current','embed64']
    14
    15  from globals import current
    16  from html import *
    17  from validators import *
    18  from http import redirect, HTTP
    19  from dal import DAL, Field
    20  from sqlhtml import SQLFORM, SQLTABLE
    21  from compileapp import LOAD
    22
    23  # Dummy code to enable code completion in IDE's.
    24  if 0:
    25      from globals import Request, Response, Session
    26      from cache import Cache
    27      from languages import translator
    28      request = Request()
    29      response = Response()
    30      session = Session()
    31      cache = Cache(request)
    32      T = translator(request)
    33