We have an app working with a database on another server through an ssh-tunnel.
The app is working. But the admin app which worked previously suddenly throws an error when one try to we tries the "database administration" button - but only for this app.
The traceback is this:
Traceback (most recent call last):
File "/home/js/web2py/gluon/restricted.py", line 227, in restricted
exec ccode in environment
File "/home/js/web2py/applications/wos_2015_3/views/appadmin.html", line 93, in <module>
{{tablename=request.args[1]}}
File "/home/js/web2py/gluon/packages/dal/pydal/base.py", line 899, in __getitem__
return self.__getattr__(str(key))
File "/home/js/web2py/gluon/packages/dal/pydal/base.py", line 905, in __getattr__
return self.lazy_define_table(tablename, *fields, **args)
File "/home/js/web2py/gluon/packages/dal/pydal/base.py", line 845, in lazy_define_table
field.represent = auto_represent(field)
File "/home/js/web2py/gluon/packages/dal/pydal/helpers/methods.py", line 286, in auto_represent
if field.db and field.type.startswith('reference') and \
AttributeError: 'module' object has no attribute 'startswith'