| 102 | |
| 103 | {{{S3Anonymize}}} implements the {{{S3Method}}} interface and can thus be configured as REST method for a resource using {{{s3db.set_method}}}. |
| 104 | |
| 105 | Apart from that, S3Anonymize comes with a generic {{{cascade()}}} method that can be used to implement other anonymize/cleanup routines: |
| 106 | {{{ |
| 107 | S3Anonymize.cascade(table, record_ids, rules) |
| 108 | }}} |
| 109 | |
| 110 | ...where: |
| 111 | - ''table'' is the target {{{Table}}} |
| 112 | - ''record_ids'' is a set or list of record IDs to anonymize |
| 113 | - ''rules'' is single dict of rules as described above |
| 114 | |
| 115 | This function returns nothing, but will raise in case of an error. |