Changes between Version 6 and Version 7 of S3XRC/ResourceReport


Ignore:
Timestamp:
08/28/10 12:21:07 (14 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3XRC/ResourceReport

    v6 v7  
    5353
    5454    if r.representation == "html":
    55         # HTML report generating code goes here
     55        # HTML report generating code goes here:
     56        # "output" gets a dict of variables to be passed to the view
     57
     58        response.view = "xxx/yyy_report.html" # <== choose the view template
     59
     60        return output # <== return the output to the view
    5661
    5762    elif r.representation == "xls":
    5863        # XLS report generating code goes here
     64        # "output" gets the XLS contents
     65
     66        return output # <== return the output to the view
    5967
    6068    elif r.representation == "pdf":
    6169        # PDF report generating code goes here
     70        # "output" takes the PDF contents
     71
     72        return output # <== return the output to the view
    6273
    6374    elif r.representation == "svg":
    6475        # SVG report generating code goes here
     76        # "output" takes the SVG as a string
     77
     78        return output # <== return the output to the view
    6579
    6680    else: