Changes between Version 13 and Version 14 of S3/S3Report


Ignore:
Timestamp:
04/19/12 22:57:14 (10 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3Report

    v13 v14  
     1= S3Cube =
    12[[TOC]]
    2 
    3 = S3Cube =
    43
    54S3Cube is a REST method handler for data analysis.
     
    1413
    1514Pyvttbl requires the following Python modules:
    16 
    1715  - numpy
    1816  - matplotlib
    19 
    20 Python 2.7 is recommended for S3Cube, however it would work with Python 2.6.
    2117
    2218[=#url_methods]
    2319== URL Methods ==
    2420
    25 S3Cube responds to the {{{analyze}}} URL method, for ''all'' resources (generic method).
     21S3Cube responds to the {{{report}}} URL method, for ''all'' resources (generic method).
    2622
    2723The following parameters are accepted:
     
    4945== Examples ==
    5046
    51   - http://localhost:8000/eden/org/organisation/analyze?rows=country&cols=sector_id&fact=name
    52   - http://localhost:8000/eden/pr/person/analyze?rows=age_group&cols=gender&fact=id&aggregate=count
     47  - http://localhost:8000/eden/org/organisation/report?rows=country&cols=sector_id&fact=name
     48  - http://localhost:8000/eden/pr/person/report?rows=age_group&cols=gender&fact=id&aggregate=count
    5349
    5450  $-notation for references:
    5551
    56   - http://localhost:8000/eden/org/office/analyze?rows=location_id$parent&cols=type&fact=name
     52  - http://localhost:8000/eden/org/office/report?rows=location_id$parent&cols=type&fact=name
    5753
    5854  reduced parameter list:
    5955
    60   - http://localhost:8000/eden/org/office/analyze?rows=type&aggregate=count
    61   - http://localhost:8000/eden/org/organisation/analyze?rows=sector_id
     56  - http://localhost:8000/eden/org/office/report?rows=type&aggregate=count
     57  - http://localhost:8000/eden/org/organisation/report?rows=sector_id
    6258
    6359== Report Options ==
     
    7167Here is an example of a `report_options` item:
    7268{{{#!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
     69report_options = Storage(
     70        rows = report_fields,
     71        cols = report_fields,
     72        facts = report_fields,
     73        defaults = Storage(
     74                rows = "project_id",
     75                cols = "name",
     76                fact = "time_actual",
     77                aggregate = "sum",
     78                totals = True
    8379        )
    8480}}}