Changes between Version 4 and Version 5 of S3REST
- Timestamp:
- 02/28/10 23:01:03 (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3REST
v4 v5 14 14 === Attributes === 15 15 16 The following attributes are set during initialisation of an XRequest object, no further call is required. 17 18 ==== Controller Attributes ==== 19 16 20 ||'''rc'''||the resource controller object (''S3XRC'')|| 17 ||'''prefix'''||the prefix (=module name) of the requested resource (''string'')||18 ||'''name'''||the name of the requested resource, without prefix (''string'')||19 21 ||'''request'''||the original web2py request (''Storage'')|| 20 22 ||'''session'''||the current session (''Storage'')|| 21 ||'''error'''||the last error message (''string'')|| 22 ||'''invalid'''||Flag indicating this request as invalid (''boolean'')|| 23 ||'''badmethod'''||Flag indicating a bad method error (''boolean'')|| 24 ||'''badrecord'''||Flag indicating a invalid record ID error (''boolean'')|| 25 ||'''badrequest'''||Flag indicating an unqualified request error (''boolean'')|| 23 24 ==== Request Attributes ==== 25 26 26 ||'''representation'''||the current representation of this request (''string'', lowercase)|| 27 27 ||'''http'''||the HTTP method of this request (''string'', always uppercase!)|| 28 28 ||'''extension'''||the extension found in the original request (''string'', lowercase)|| 29 ||'''method'''||the method of the request if not HTTP (''string'', always lowercase)|| 30 ||'''custom_action'''||the custom method handler for the request (''function'' or ''lambda'')|| 31 32 ==== Primary Resource Attributes ==== 33 34 ||'''prefix'''||the prefix (=module name) of the requested resource (''string'')|| 35 ||'''name'''||the name of the requested resource, without prefix (''string'')|| 29 36 ||'''tablename'''||the name of the primary table (''string'')|| 30 37 ||'''table'''||the primary table (''Table'')|| 31 ||'''method'''||the method of the request if not HTTP (''string'', always lowercase)||32 38 ||'''id'''||the ID of the primary record (''int'')|| 33 39 ||'''record'''||the primary record (''Row'')|| 40 41 ==== Component Resource Attributes ==== 42 34 43 ||'''component'''||the requested component, if any (''!ObjectComponent'')|| 35 44 ||'''pkey'''||the primary key of the Resource/Component join (''string'')|| … … 38 47 ||'''component_id'''||the ID of the component record as of the request, if any (''int'')|| 39 48 ||'''multiple'''||Flag indicating that multiple component records are allowed (''boolean'')|| 40 ||'''custom_action'''||the custom method handler for the request (''function'' or ''lambda'')|| 49 50 ==== Error Indicators ==== 51 52 ||'''error'''||the last error message (''string'')|| 53 ||'''invalid'''||Flag indicating this request as invalid (''boolean'')|| 54 ||'''badmethod'''||Flag indicating a bad method error (''boolean'')|| 55 ||'''badrecord'''||Flag indicating a invalid record ID error (''boolean'')|| 56 ||'''badrequest'''||Flag indicating an unqualified request error (''boolean'')|| 41 57 42 58 '''!ObjectComponent''' contains: