Changes between Version 8 and Version 9 of S3/S3AAA/RecordApproval


Ignore:
Timestamp:
02/01/13 09:50:37 (9 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3AAA/RecordApproval

    v8 v9  
    107107   '''Note:''' For security reasons, both ''approve'' and ''reject'' via CRUD are only possible as POST requests which include the respective form keys from the ''review'' of a record.
    108108== Callbacks ==
    109 
    110109For both, resource.approve() and resource.reject(), there are hooks which will be called for each record that gets approved/rejected:
    111 
    112110{{{
    113111s3db.configure(tablename, onapprove=function)
     
    116114
    117115The hook function must table {{{(table, row)}}} as parameter, and doesn't return anything.
     116
     117== Imports ==
     118Imported data is assumed to be approved by the default approver.
     119
     120If you wish to import unapproved data then you need to set the attribute {{{@approved=false}}}