Could it be possible that you upgrade web2py but not the appadmin
controller?

Richard

On Thu, Sep 3, 2015 at 3:01 AM, Johann Spies <[email protected]> wrote:

> 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" 
> <http://localhost:8000/admin/default/edit/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'
>
>
> How do I debug this?
>
> migrate = False for all the tables with fake_migrate on for the
> auth_related tables.
>
> Regards
> Johann
>
> --
> Because experiencing your loyal love is better than life itself,
> my lips will praise you.  (Psalm 63:3)
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to