webmcp
annotate framework/env/ui/enable_partial_loading.lua @ 23:3a6fe8663b26
Code cleanup and documentation added; Year in copyright notice changed to 2009-2010
Details:
- Changed quoting style in auth.openid.xrds_document{...}
- Fixed documentation for auth.openid.initiate{...}
- Added documentation for mondelefant
- Code-cleanup in mondelefant:
-- removed unneccessary lines "rows = PQntuples(res); cols = PQnfields(res);"
-- avoided extra copy of first argument (self) in mondelefant_conn_query
-- no rawget in meta-method "__index" of database result lists and objects
-- removed unreachable "return 0;" in meta-method "__newindex" of database result lists and objects
- Year in copyright notice changed to 2009-2010
- Version string changed to "1.1.1"
Details:
- Changed quoting style in auth.openid.xrds_document{...}
- Fixed documentation for auth.openid.initiate{...}
- Added documentation for mondelefant
- Code-cleanup in mondelefant:
-- removed unneccessary lines "rows = PQntuples(res); cols = PQnfields(res);"
-- avoided extra copy of first argument (self) in mondelefant_conn_query
-- no rawget in meta-method "__index" of database result lists and objects
-- removed unreachable "return 0;" in meta-method "__newindex" of database result lists and objects
- Year in copyright notice changed to 2009-2010
- Version string changed to "1.1.1"
| author | jbe |
|---|---|
| date | Fri Jun 04 19:00:34 2010 +0200 (2010-06-04) |
| parents | f3d3203cd2e4 |
| children |
| rev | line source |
|---|---|
| jbe/bsw@11 | 1 --[[-- |
| jbe/bsw@11 | 2 ui.enable_partial_loading() |
| jbe/bsw@11 | 3 |
| jbe@12 | 4 This function tells subsequent calls of ui.link{...} and ui.form{...} that |
| jbe@12 | 5 partial loading should be enabled when requested by passing "partial" |
| jbe@12 | 6 arguments to ui.link or ui.form. |
| jbe@12 | 7 |
| jbe@12 | 8 NOTE: To use partial loading, the slots being requested need to be |
| jbe@12 | 9 white-listed by calling request.set_allowed_json_request_slots({...}) |
| jbe@12 | 10 in the application configuration file. TODO: By now, at least the slot |
| jbe@12 | 11 names "default", "trace" and "system_error" need to be white-listed, as |
| jbe@12 | 12 these slots are currently hardwired in ui._partial_load_js(...). |
| jbe/bsw@11 | 13 |
| jbe/bsw@11 | 14 --]]-- |
| jbe/bsw@11 | 15 |
| jbe/bsw@11 | 16 function ui.enable_partial_loading() |
| jbe/bsw@11 | 17 ui._partial_loading_enabled = true |
| jbe/bsw@11 | 18 request.force_absolute_baseurl() |
| jbe/bsw@11 | 19 end |