Thanks. Will check that out.

On Friday, July 13, 2012 7:10:49 PM UTC-4, Massimo Di Pierro wrote:
>
> You need web2py trunk.
>
>
> On Friday, 13 July 2012 16:07:18 UTC-5, DJ wrote:
>>
>> Hello,
>>
>> I have been trying to get auditing to work but run into the error below. 
>> W2P version: 1.99.7 / Mysql  5.0 
>>
>> Any recommendations on how to fix this?
>>
>>
>> 1.
>> 2.
>> 3.
>> 4.
>> 5.
>> 6.
>> 7.
>>
>> Traceback (most recent call last):
>>   File "/home/www-data/web2py/gluon/restricted.py", line 205, in restricted
>>     exec ccode in environment
>>   File "/home/www-data/web2py/applications/labcentral/models/db.py" 
>> <https://98.158.178.207/admin/default/edit/labcentral/models/db.py>, line 
>> 615, in <module>
>>     auth.enable_record_versioning(db)
>> AttributeError: 'Auth' object has no attribute 'enable_record_versioning'
>>
>>
>> -Sebastian
>> On Thursday, July 5, 2012 2:15:32 PM UTC-4, nick name wrote:
>>>
>>> On Wednesday, July 4, 2012 2:23:16 PM UTC-4, Massimo Di Pierro wrote:
>>>>
>>>> web2py has change since one year ago. Now you simply do:
>>>>
>>>>    db.define_table('mytable',....fields...,auth.signature)
>>>>    ... define more table ...
>>>>    auth.enable_record_versioning(db)
>>>>
>>>> and mytable will have a mytable_archive that works as Nick suggested.
>>>>
>>>
>>> Indeed, it works beautifully, and is much simpler (and much more 
>>> general) than my monkeypatching solution.
>>>
>>> Thanks, Massimo! 
>>>
>>

Reply via email to