I have the following definition in models:

SQLField('createdat', 'datetime', default=datetime.datetime.now())

It automatically timestamps record when it's created. Used to work
well with oracle under web2py version 1.65.1

Now it stopped working, error is validators.py line 2006. Str object
has no attrib 'strftime'.

Oracle table column 'createdat' is type 'date' and when seen from pl/
sql window, shows timestamps in DD.MM.YYYY HH:MM:SS format.

It seems that in validators.py in formatter class the field value is
str instead of datetime.

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to