wiki:DeveloperGuidelines/Web2pyInternalsAndTips

Version 4 (modified by Pat Tressel, 9 years ago) ( diff )

--

This is a collection of tips extracted in part by reading the Web2py code.

gluon.dal

DAL

DB Adapters

Table

Get DAL object given a Table object (in table):

table._db

Get names of fields in a Table:

table.fields()

Get Field objects from a Table (field name in fieldname):

table[fieldname]

Field

Environment

Custom Import

Form accepts

Validation

Note: See TracWiki for help on using the wiki.