Package web2py :: Package gluon :: Module sqlhtml
[hide private]
[frames] | no frames]

Module sqlhtml

source code


This file is part of web2py Web Framework (Copyrighted, 2007-2010).
Developed by Massimo Di Pierro <mdipierro@cs.depaul.edu>.
License: GPL v2

Holds:

- SQLFORM: provide a form for a table (with/without record)
- SQLTABLE: provides a table for a set of records
- form_factory: provides a SQLFORM for an non-db backed table

Classes [hide private]
  FormWidget
helper for SQLFORM to generate form input fields (widget), related to the fieldtype
  StringWidget
  IntegerWidget
  DoubleWidget
  TimeWidget
  DateWidget
  DatetimeWidget
  TextWidget
  BooleanWidget
  OptionsWidget
  MultipleOptionsWidget
  RadioWidget
  CheckboxesWidget
  PasswordWidget
  UploadWidget
  SQLFORM
SQLFORM is used to map a table (and a current record) into an HTML form
  SQLTABLE
given a SQLRows object, as returned by a db().select(), generates an html table with the rows.
Functions [hide private]
 
form_factory(*fields, **attributes)
generates a SQLFORM for the given fields.
source code
Variables [hide private]
  table_field = re.compile(r'[\w_]+\.[\w_]+')
  ON = True
  TAG = __TAG__()
Function Details [hide private]

form_factory(*fields, **attributes)

source code 

generates a SQLFORM for the given fields.

Internally will build a non-database based data model to hold the fields.