Changes between Version 9 and Version 10 of S3XRC/ResourceReport


Ignore:
Timestamp:
08/28/10 18:21:07 (11 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3XRC/ResourceReport

    v9 v10  
    1717
    1818{{{
    19 def shn_xxx_yyy_report(r, **attr):
     19def s3_xxx_yyy_report(r, **attr):
    2020
    2121    # Report generating code goes here
    2222
    23 s3xrc.model.set_method("xxx", "yyy", method="report", action=shn_xxx_yyy_report)
     23s3xrc.model.set_method("xxx", "yyy", method="report", action=s3_xxx_yyy_report)
    2424}}}
    2525
     
    5050
    5151{{{
    52 def shn_xxx_yyy_report(r, **attr):
     52def s3_xxx_yyy_report(r, **attr):
    5353
    5454    if r.representation == "html":
     
    8282        raise HTTP(501, body=s3xrc.ERROR.BAD_FORMAT)
    8383
    84 s3xrc.model.set_method("xxx", "yyy", method="report", action=shn_xxx_yyy_report)
     84s3xrc.model.set_method("xxx", "yyy", method="report", action=s3_xxx_yyy_report)
    8585}}}
    8686
     
    102102
    103103{{{
    104 def shn_xxx_yyy_report(r, **attr):
     104def s3_xxx_yyy_report(r, **attr):
    105105
    106106    resource = r.resource # <== Get the resource
     
    139139        raise HTTP(501, body=s3xrc.ERROR.BAD_FORMAT)
    140140
    141 s3xrc.model.set_method("xxx", "yyy", method="report", action=shn_xxx_yyy_report)
     141s3xrc.model.set_method("xxx", "yyy", method="report", action=s3_xxx_yyy_report)
    142142}}}
    143143
     
    153153
    154154{{{
    155 def shn_xxx_yyy_report(r, **attr):
     155def s3_xxx_yyy_report(r, **attr):
    156156
    157157    # Report generating code goes here
    158158
    159 s3xrc.model.set_method("xxx", "yyy", method="report", action=shn_xxx_yyy_report)
     159s3xrc.model.set_method("xxx", "yyy", method="report", action=s3_xxx_yyy_report)
    160160}}}
    161161
     
    163163
    164164{{{
    165 def shn_xxx_yyy_report(r, **attr):
     165def s3_xxx_yyy_report(r, **attr):
    166166
    167167    if r.representation == "html":
     
    169169        return output
    170170
    171 s3xrc.model.set_method("xxx", "yyy", method="report", action=shn_xxx_yyy_report)
     171s3xrc.model.set_method("xxx", "yyy", method="report", action=s3_xxx_yyy_report)
    172172}}}
    173173