rif / web2admin

web2py administration plugin
26 stars 10 forks source link

Object has no attribute id #3

Closed mdipierro closed 12 years ago

mdipierro commented 12 years ago

I applied the plugins to a simple barebone app with just def index(); return wiki.auth() and I get:

Traceback (most recent call last): File "/Users/massimodipierro/Dropbox/web2py/gluon/restricted.py", line 209, in restricted exec ccode in environment File "/Users/massimodipierro/Dropbox/web2py/applications/cocineros/controllers/plugin_web2admin.py", line 102, in File "/Users/massimodipierro/Dropbox/web2py/gluon/globals.py", line 186, in self._caller = lambda f: f() File "/Users/massimodipierro/Dropbox/web2py/gluon/tools.py", line 2812, in f return action(_a, *_b) File "/Users/massimodipierro/Dropbox/web2py/applications/cocineros/controllers/plugin_web2admin.py", line 31, in history logs = w2a_def_db(w2a_history).select(orderby=~w2a_history.id)[:5] AttributeError: 'NoneType' object has no attribute 'id'