hi!
trying to migrate my application from web2py 1.99.7 to new stable release 2.0.2 I obtain this error:

Traceback (most recent call last):
File "/home/manuele/Dropbox/sviluppo/web2py-2.0.2/gluon/restricted.py", line 209, in restricted
    exec ccode in environment
File "/home/manuele/Dropbox/sviluppo/web2py-2.0.2/applications/theseus/models/plugin_lookout.py", line 52, in <module>
    id_max = db().select(f_max).first()[f_max] or 0
File "/home/manuele/Dropbox/sviluppo/web2py-2.0.2/gluon/dal.py", line 8679, in select
    return self(fields[0]._table).select(*fields,**attributes)
AttributeError: 'Expression' object has no attribute '_table'

and these are the two incriminated code lines:

51 f_max = db.plugin_lookout_connections.id.max()
52 id_max = db().select(f_max).first()[f_max] or 0

considering that the code under the 1.99.7 version works fine could it be a non backward compatibility bug?

thanks for any help

cheers

    Manuele

--



Reply via email to