wiki:BluePrintRepresent

Blue Print for Represent changes

We want to separate out the db[table][field].represent used for the HTML representation (Web2Py core is heavily built on this) from the one which we use for Export representations, such as XLS, CSV, RSS, which shouldn't include HTML tags or AJAX calls.

We therefore propose subclassing Field to include a new .represent_export or .represent_simple for the other representations (which we control in RESTLike controller & S3XRC & hence requires minimal changes to Web2Py core). If no .represent_export exists, then it would fallback to using the normal .represent.


BluePrints

Last modified 11 years ago Last modified on 02/06/10 23:33:53
Note: See TracWiki for help on using the wiki.