I agree I was thinking about it. Use case:

Instead of:

db.define_table('message',Field('body'))
form = crud.create(db.message)
form = crud.update(db.message,message_id)

do

db.define_table('message',Field('body'),auth.signature)
form = crud.create(db.message)
form = crud.update(db.message,message_id,onaccept=crud.archive)

Now all records are timestamped, signed by the author, and versioned.



On Feb 8, 7:03 pm, Vinicius Assef <vinicius...@gmail.com> wrote:
> Massimo, it's really very good.
>
> What about including "is_active" to represent record active (True) or
> not (False)?
>
> The ideia is work like dBase III Plus. It had a flag indicating if the
> record was active or deleted. Then, the "pack" command made a real
> delete.
>
> --
> Vinicius Assef.
>
>
>
>
>
>
>
> On Tue, Feb 8, 2011 at 6:39 PM, villas <villa...@gmail.com> wrote:
> > For those intrigued and cannot update to trunk right now, it creates
> > some extra fields...
>
> > ['id', 'whatever', 'created_on', 'created_by', 'modified_on',
> > 'updated_by']
>
> > Nice shortcut, but I never guessed from the name 'auth.signature' what
> > it would do.
> > Maybe a different name would be clearer?  e.g. 'auth.rectimestamp'

Reply via email to