Changes between Version 14 and Version 15 of S3/S3Model
- Timestamp:
- 01/20/14 09:05:06 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified S3/S3Model
v14 v15 24 24 While web2py executes ''all'' models during every request cycle, {{{S3Model}}} only executes the models needed to process the request. 25 25 26 That means though that all names (e.g. tables, variables, functions) which are defined in S3Models need to be requested explicitly before they can be used. To facilitate that, a global {{{S3Model}}} instance '''s3db'''serves as model loader.26 That means though that all names (e.g. tables, variables, functions) which are defined in S3Models need to be requested explicitly before they can be used. To facilitate that, a global {{{S3Model}}} instance [#current.s3db s3db] serves as model loader. 27 27 28 28 In web2py, database tables can be accessed from the global '''db''' object: