Hi,

I was reading about crud.archive in the online Web2Py book, when i noticed 
the following:

auth.archive does not timestamp the stored record unless your original 
table has timestamp fields, for example:

 db.define_table('mytable',
 Field('created_on','datetime',
 default=request.now,update=request.now,writable=False),
 Field('created_by',auth.user,
 default=auth.user_id,update=auth.user_id,writable=False),


I tried to use this in my own case and came up an error: 

TypeError: unhashable type: 'Storage'

After i changed:

Field('created_by',auth.user,

To:

Field('created_by',db.auth_user,

I got this working.

So, I was wondering if this is a mistake or is it just me who doesn't 
understand this? :-)

Remco

Reply via email to