Computed fields Computed fields DAL fields may have a compute attribute. This must be a function (or lambda) that takes a Row object and returns a value for the field. When a ...
The DAL: A quick tour The DAL: A quick tour web2py defines the following classes that make up the DAL: The DAL object represents a database connection. For example: db = D...
SQLFORM.grid and SQLFORM.smartgrid SQLFORM.grid and SQLFORM.smartgrid Attention: grid and smartgrid were experimental prior web2py version 2.0 and were vulnerable to infor...
Populating database with dummy data Populating database with dummy data For testing purposes, it is convenient to be able to populate database tables with dummy data. web2py in...
Forms and validators Forms and validators There are four distinct ways to build forms in web2py: FORM provides a low-level implementation in terms of HTML helpers. A FORM o...
Virtual fields New style virtual fields (experimental) Old style virtual fields Virtual fields Virtual fields are also computed fields (as in the previous subsection) but the...
Widgets Autocomplete widget Widgets Here is a list of available web2py widgets: SQLFORM . widgets . string . widget SQLFORM . widgets . text . widget SQLFORM . widgets . ...
HTML helpers XML HTML helpers Consider the following code in a view: {{= DIV ( 'this' , 'is' , 'a' , 'test' , _id = '123' , _class = 'myclass' )}} it is rendered ...