Changes between Version 5 and Version 6 of S3XRC/ResourceReport
- Timestamp:
- 08/28/10 10:19:34 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3XRC/ResourceReport
v5 v6 90 90 def shn_xxx_yyy_report(r, **attr): 91 91 92 resource = r.resource 92 resource = r.resource # <== Get the resource 93 93 94 94 if r.representation == "html": 95 95 96 # Get all records 97 rows = resource.records() 96 rows = resource.records() # <== get all records 98 97 99 98 elif r.representation == "xls": 99 100 for record in resource: # <== interate through the records 101 ... 102 103 elif r.representation == "pdf": 100 104 101 105 # Access components record-wise: … … 104 108 for component_record in component_set: 105 109 ... 106 107 elif r.representation == "pdf":108 109 # Iterate through the records:110 for record in resource:111 ...112 110 113 111 elif r.representation == "svg": … … 118 116 resource.build_query(filter = filter) 119 117 120 # Iterate through the records:118 # ...and then iterate through the records: 121 119 for record in resource: 122 120 ... … … 132 130 ...to be continued... 133 131 ...to be continued... 132 ...to be continued...