Changes between Version 12 and Version 13 of S3/S3Report
- Timestamp:
- 04/19/12 10:48:55 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/S3Report
v12 v13 20 20 Python 2.7 is recommended for S3Cube, however it would work with Python 2.6. 21 21 22 == URL methods == 22 [=#url_methods] 23 == URL Methods == 23 24 24 25 S3Cube responds to the {{{analyze}}} URL method, for ''all'' resources (generic method). … … 59 60 - http://localhost:8000/eden/org/office/analyze?rows=type&aggregate=count 60 61 - http://localhost:8000/eden/org/organisation/analyze?rows=sector_id 62 63 == Report Options == 64 65 Table configurations can contain a `report_options` item, which is a Storage object. This object is used to configure reports and report options form. 66 67 The `rows`, `cols`, `facts` and `aggregate` items are lists of available values for the user to select from. 68 69 The `defaults` item is a Storage object that contains the default values for the report. It can contain a value for `rows`, `cols`, `fact`, `aggregate` and `totals` (as described in [#URLMethods URL Methods]). 70 71 Here is an example of a `report_options` item: 72 {{{#!python 73 report_options=Storage( 74 rows=report_fields, 75 cols=report_fields, 76 facts=report_fields, 77 defaults=Storage( 78 rows="project_id", 79 cols="name", 80 fact="time_actual", 81 aggregate="sum", 82 totals=True 83 ) 84 }}} 85 86 All items in `report_options` and `defaults` are optional. 87 61 88 == Further Development == 62 89 63 90 The following enhancements are currently under development: 64 91 65 - Totals row and column66 92 - Support for JSON, CSV and XLS exports 67 93 - Support for client-side graphs representation (via JSON)