The _before_delete callback should work with auth.signature and record 
versioning. Note, however, that with record versioning, a special 
_before_delete callback is added that does an update with is_active=False. 
So, in addition to adding your own _before_delete callback, your 
_before_update callback should detect cases where is_active=False is being 
set, and suppress the update event log in that case (since your 
_before_delete callback will already be adding to the log).

Anthony

On Thursday, April 9, 2015 at 9:45:42 AM UTC-4, 黄祥 wrote:
>
> thank you so much anthony. it seems need _before_delete callback, with 
> some condition (auth.signature disable or create custom auth.signature).
>
> ref:
>
> https://groups.google.com/forum/#!searchin/web2py/_before_delete$20callback$20/web2py/didLpxEKT38/mRzmEgHCQeEJ
>
> best regards,
> stifan
>
>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to