In the web based shall can you try:

print db
print db.instansie
print db.instansie.naam

what do you get? which os? web2py version? binary or source?

On Dec 17, 12:59 am, Johann Spies <[email protected]> wrote:
> The following work in the commandline based shell:
>
> >>> for it in db().select(db.instansie.naam):
>
> ...     print it
> ...
> <Row {'naam': 'Universiteit van Stellenbosch'}>
>
> The same in the web-based shell:
>
> Out[26]:        
>
> Traceback (most recent call last):
>   File "<input>", line 1, in <module>
>   File "/home/js/web2py/gluon/sql.py", line 1269, in __getattr__
>     return dict.__getitem__(self,key)
> KeyError: 'instansie'
>
> Johann

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to