[web2py] Re: enable_record_versioning() - possible to update archive only after deletion?

2013-03-13 Thread Lamps902
Thanks, Niphlod! Will give it a go.

-Lamps

On Wednesday, March 13, 2013 6:12:41 PM UTC-5, Niphlod wrote:
>
> use callbacks it's not automatic as the archive functionality (that 
> basically sets "smarts" callbacks for you) but it's definitely 
> accomplishable.
>
> http://web2py.com/books/default/chapter/29/06#before-and-after-callbacks
>
> On Wednesday, March 13, 2013 7:27:16 PM UTC+1, Lamps902 wrote:
>>
>> At present, auth._enable_record_versioning and 
>> db.table._enable_record_versioning 
>> update a record every time something is modified or deleted (including 
>> the flipping of the *is_active* field). Is there a way to use the 
>> functionality provided by these functions to update an archive only upon 
>> deletion of records, ignoring changes that do not remove the record from 
>> the original database or don't flip the *is_active* bit? Thanks.
>>
>

-- 

--- 
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/groups/opt_out.




[web2py] Re: enable_record_versioning() - possible to update archive only after deletion?

2013-03-13 Thread Niphlod
use callbacks it's not automatic as the archive functionality (that 
basically sets "smarts" callbacks for you) but it's definitely 
accomplishable.

http://web2py.com/books/default/chapter/29/06#before-and-after-callbacks

On Wednesday, March 13, 2013 7:27:16 PM UTC+1, Lamps902 wrote:
>
> At present, auth._enable_record_versioning and 
> db.table._enable_record_versioning 
> update a record every time something is modified or deleted (including 
> the flipping of the *is_active* field). Is there a way to use the 
> functionality provided by these functions to update an archive only upon 
> deletion of records, ignoring changes that do not remove the record from 
> the original database or don't flip the *is_active* bit? Thanks.
>

-- 

--- 
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/groups/opt_out.