Changes between Version 12 and Version 13 of S3/S3Report


Ignore:
Timestamp:
04/19/12 10:48:55 (13 years ago)
Author:
James O'Neill
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3Report

    v12 v13  
    2020Python 2.7 is recommended for S3Cube, however it would work with Python 2.6.
    2121
    22 == URL methods ==
     22[=#url_methods]
     23== URL Methods ==
    2324
    2425S3Cube responds to the {{{analyze}}} URL method, for ''all'' resources (generic method).
     
    5960  - http://localhost:8000/eden/org/office/analyze?rows=type&aggregate=count
    6061  - http://localhost:8000/eden/org/organisation/analyze?rows=sector_id
     62
     63== Report Options ==
     64
     65Table configurations can contain a `report_options` item, which is a Storage object. This object is used to configure reports and report options form.
     66
     67The `rows`, `cols`, `facts` and `aggregate` items are lists of available values for the user to select from.
     68
     69The `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
     71Here is an example of a `report_options` item:
     72{{{#!python
     73report_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
     86All items in `report_options` and `defaults` are optional.
     87
    6188== Further Development ==
    6289
    6390The following enhancements are currently under development:
    6491
    65   - Totals row and column
    6692  - Support for JSON, CSV and XLS exports
    6793  - Support for client-side graphs representation (via JSON)