[web2py] Re: crud.archive edit history question

2010-07-02 Thread selecta
no I have to correct myself, order of edits can be reconstructed by the id of the archived records On Jul 2, 1:40 pm, selecta wrote: > I tried it and this is NOT how it works > the current_record Field always points to the latest version > thus you can do > > current_record_version = db(getattr(d

[web2py] Re: crud.archive edit history question

2010-07-02 Thread selecta
I tried it and this is NOT how it works the current_record Field always points to the latest version thus you can do current_record_version = db(getattr(db,table_info.sql_name +"_archive").current_record==current_record.id).count() and saving created_on for every version is essential since otherw

[web2py] Re: crud.archive edit history question

2010-07-02 Thread mdipierro
Looks good. This assumes you you created the table_name+'_archive' according to crud.archive. On 2 Lug, 04:09, selecta wrote: > How do I display the edit history? > > For example I want to preserve the original creator and see who edited > it. How I understand this right now I would add the foll