Disregard previous msg. Problem is in conflict with 'represent' attribute.
On 1 мар, 17:04, SergeyPo <ser...@zarealye.com> wrote: > Somehow when it calls formatter in line 2006 of validators.py, it uses > IS EMPTY OR validator, passes empty string there and tries to call > strftime for this string. > > URGENT!!!! > > On 1 ÜÐà, 16:43, SergeyPo <ser...@zarealye.com> wrote: > > > 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.