|Version 9 (modified by 8 years ago) ( diff ),|
Table of Contents
S3Model class defines the framework for data models in Eden. It extends the web2py concept by:
- implicit and lazy model loading
- an extensible, per-table configuration pattern
- a meta-model for projected entities (the so-called "resource component model")
- a meta-model for multi-table keys (the so-called "super-entity model")
Data models can be implemented as subclasses of S3Model, and then loaded on demand - with automatic resolution of cross-model dependencies. This saves processing time as it will always only load those models which are actually needed to process the request.