Hi Quint
Below is the trace - hope it hepls.
Russ
Traceback (most recent call last):
File "C:\web2pysrcdev\web2py\gluon\restricted.py", line 224, in restricted
exec ccode in environment
File
"C:\web2pysrcdev\web2py\applications\gaetest\controllers/default.py", line
128, in <module>
File "C:\web2pysrcdev\web2py\gluon\globals.py", line 393, in <lambda>
self._caller = lambda f: f()
File
"C:\web2pysrcdev\web2py\applications\gaetest\controllers/default.py", line
56, in belongs
recs = db(db.testtable.id.belongs(insertlist)).select()
File "C:\web2pysrcdev\web2py\gluon\dal\objects.py", line 2064, in select
return adapter.select(self.query,fields,attributes)
File "C:\web2pysrcdev\web2py\gluon\dal\adapters\google.py", line 539, in
select
(items, tablename, fields) = self.select_raw(query,fields,attributes)
File "C:\web2pysrcdev\web2py\gluon\dal\adapters\google.py", line 456, in
select_raw
items = self.filter(items, tableobj, filter.name, filter.op,
filter.value)
File "C:\web2pysrcdev\web2py\gluon\dal\adapters\google.py", line 361, in
filter
return self.GAE_FILTER_OPTIONS[op](query, tableobj, prop, value)
File "C:\web2pysrcdev\web2py\gluon\dal\adapters\google.py", line 357, in
<lambda>
'in': lambda q, t, p, v: q.filter(getattr(t,p).IN(v)),
AttributeError: type object 'testtable' has no attribute '__key__'
--
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.