Changes between Version 9 and Version 10 of S3XRC/ResourceReport
- Timestamp:
- 08/28/10 18:21:07 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3XRC/ResourceReport
v9 v10 17 17 18 18 {{{ 19 def s hn_xxx_yyy_report(r, **attr):19 def s3_xxx_yyy_report(r, **attr): 20 20 21 21 # Report generating code goes here 22 22 23 s3xrc.model.set_method("xxx", "yyy", method="report", action=s hn_xxx_yyy_report)23 s3xrc.model.set_method("xxx", "yyy", method="report", action=s3_xxx_yyy_report) 24 24 }}} 25 25 … … 50 50 51 51 {{{ 52 def s hn_xxx_yyy_report(r, **attr):52 def s3_xxx_yyy_report(r, **attr): 53 53 54 54 if r.representation == "html": … … 82 82 raise HTTP(501, body=s3xrc.ERROR.BAD_FORMAT) 83 83 84 s3xrc.model.set_method("xxx", "yyy", method="report", action=s hn_xxx_yyy_report)84 s3xrc.model.set_method("xxx", "yyy", method="report", action=s3_xxx_yyy_report) 85 85 }}} 86 86 … … 102 102 103 103 {{{ 104 def s hn_xxx_yyy_report(r, **attr):104 def s3_xxx_yyy_report(r, **attr): 105 105 106 106 resource = r.resource # <== Get the resource … … 139 139 raise HTTP(501, body=s3xrc.ERROR.BAD_FORMAT) 140 140 141 s3xrc.model.set_method("xxx", "yyy", method="report", action=s hn_xxx_yyy_report)141 s3xrc.model.set_method("xxx", "yyy", method="report", action=s3_xxx_yyy_report) 142 142 }}} 143 143 … … 153 153 154 154 {{{ 155 def s hn_xxx_yyy_report(r, **attr):155 def s3_xxx_yyy_report(r, **attr): 156 156 157 157 # Report generating code goes here 158 158 159 s3xrc.model.set_method("xxx", "yyy", method="report", action=s hn_xxx_yyy_report)159 s3xrc.model.set_method("xxx", "yyy", method="report", action=s3_xxx_yyy_report) 160 160 }}} 161 161 … … 163 163 164 164 {{{ 165 def s hn_xxx_yyy_report(r, **attr):165 def s3_xxx_yyy_report(r, **attr): 166 166 167 167 if r.representation == "html": … … 169 169 return output 170 170 171 s3xrc.model.set_method("xxx", "yyy", method="report", action=s hn_xxx_yyy_report)171 s3xrc.model.set_method("xxx", "yyy", method="report", action=s3_xxx_yyy_report) 172 172 }}} 173 173