Changes between Version 6 and Version 7 of S3XRC/ResourceReport
- Timestamp:
- 08/28/10 12:21:07 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3XRC/ResourceReport
v6 v7 53 53 54 54 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 56 61 57 62 elif r.representation == "xls": 58 63 # XLS report generating code goes here 64 # "output" gets the XLS contents 65 66 return output # <== return the output to the view 59 67 60 68 elif r.representation == "pdf": 61 69 # PDF report generating code goes here 70 # "output" takes the PDF contents 71 72 return output # <== return the output to the view 62 73 63 74 elif r.representation == "svg": 64 75 # SVG report generating code goes here 76 # "output" takes the SVG as a string 77 78 return output # <== return the output to the view 65 79 66 80 else: