There's a problem in line 7182 of the new dal.py:

Table.__getitem__() is testing if an object is instance of the Key class 
(which only exists in the namespace if the appengine modules are present)

On Monday, May 7, 2012 5:49:09 AM UTC-3, Johann Spies wrote:
>
> After updating my web2py from the trunc about two hours ago, the following 
> happened when I tried to access an existing app:
>
> Database drivers available: pysqlite2, pymysql, psycopg2, pg8000, IMAP
> Traceback (most recent call last):
>   File "/home/js/web2py/gluon/restricted.py", line 205, in restricted
>     exec ccode in environment
>   File "applications/akb/models/db.py", line 40, in <module>
>     auth = Auth(db)                                # 
> authentication/authorization
>   File "/home/js/web2py/gluon/tools.py", line 1161, in __init__
>     writable=False,readable=False))
>   File "/home/js/web2py/gluon/dal.py", line 7042, in __init__
>     if db and self._db._adapter.uploads_in_blob==True:
>   File "/home/js/web2py/gluon/dal.py", line 7245, in __getattr__
>     return self[key]
>   File "/home/js/web2py/gluon/dal.py", line 7182, in __getitem__
>     elif str(key).isdigit() or isinstance(key, Key):
> NameError: global name 'Key' is not defined
>
> Replacing dal.py with the one  from 25.04.2012 solved the problem for me.
>
> Regards
> Johann
>
> -- 
> Because experiencing your loyal love is better than life itself, 
> my lips will praise you.  (Psalm 63:3)
>
>

Reply via email to