Error using auth.signature

28 views
Skip to first unread message

Fabio Gubler

unread,
May 7, 2019, 10:52:05 AM5/7/19
to web2py-users
Hi,
I' new to web2py and I try to follow Massimo Di Pierro video on YouTube/Vimeo.
When I change in db1.py the 4 following 4 rows:
Field('dateofcreation', 'datetime'),
Field('created_by', 'reference auth_user'),
Field('modified_by', 'reference auth_user'),
Field('modified_on', 'datetime'))
with 
auth.signature
I get a error ticket.
It seems that in the default/index.html at the line 131  (response.write(row.timeofcreation)) raise the following error:
AttributeError()
Could somebody help me to overcome this problem?
Tanks in advance.
Have a good day.

jcrm...@gmail.com

unread,
May 7, 2019, 1:30:01 PM5/7/19
to web...@googlegroups.com
auth_signature creates these 4 fields:
created_on
created_by
modified_on
modified_by

You are trying to access a field called timeofcreation which doesn't exist.
In default\index replace timeofcreation with created_on.

Fabio Gubler

unread,
May 8, 2019, 2:57:47 AM5/8/19
to web...@googlegroups.com
Thanks for you answer. 
It solved my problem.
Have a good day.

On Tue, 7 May 2019 at 19:30, <jcrm...@gmail.com> wrote:
auth_signature creates these 4 fields:
created_on
created_by
modified_on
modified_by

You are trying to access a field called dateofcreation which doesn't exist.
In default\index replace dateofcreation with created_on.



terça-feira, 7 de Maio de 2019 às 15:52:05 UTC+1, Fabio Gubler escreveu:
Hi,
I' new to web2py and I try to follow Massimo Di Pierro video on YouTube/Vimeo.
When I change in db1.py the 4 following 4 rows:
Field('dateofcreation', 'datetime'),
Field('created_by', 'reference auth_user'),
Field('modified_by', 'reference auth_user'),
Field('modified_on', 'datetime'))
with 
auth.signature
I get a error ticket.
It seems that in the default/index.html at the line 131  (response.write(row.timeofcreation)) raise the following error:
AttributeError()
Could somebody help me to overcome this problem?
Tanks in advance.
Have a good day.

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/ac285539-985f-49c8-8f92-5d8d3286844e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages