It gives a different error using trunk:
Traceback (most recent call last):
File "C:\w2p\trunk\gluon\restricted.py", line 204, in restricted
exec ccode in environment
File "C:/w2p/trunk/applications/test/controllers/test.py", line 21,
in <module>
File "C:\w2p\trunk\gluon\globals.py", line 172, in <lambda>
self._caller = lambda f: f()
File "C:/w2p/trunk/applications/test/controllers/test.py", line 18,
in list_records
records = db(query).select(db[table])
File "C:\w2p\trunk\gluon\dal.py", line 7371, in select
return adapter.select(self.query,fields,attributes)
File "C:\w2p\trunk\gluon\dal.py", line 1301, in select
sql = self._select(query, fields, attributes)
File "C:\w2p\trunk\gluon\dal.py", line 1730, in _select
sql = super(SQLiteAdapter, self)._select(query, fields,
attributes)
File "C:\w2p\trunk\gluon\dal.py", line 1198, in _select
raise SyntaxError, 'Set: no tables selected'
SyntaxError: Set: no tables selected
File C:\w2p\trunk\gluon\dal.py in _select at line 1198 code arguments
variables
Function argument list
(self=<gluon.dal.SQLiteAdapter object>, query='person.id>0',
fields=[<Table {'ALL': <gluon.dal.SQLALL object at 0x023...lename':
<gluon.dal.Field object at 0x023B4330>}>], attributes={})
Code listing
1193.
1194. if use_common_filters(query):
1195. query = self.common_filter(query,tablenames)
1196.
1197. if len(tablenames) < 1:
1198. raise SyntaxError, 'Set: no tables selected'
1199. sql_f = ', '.join(map(self.expand, fields))
1200. self._colnames = [c.strip() for c in sql_f.split(', ')]
1201. if query:
1202. sql_w = ' WHERE ' + self.expand(query)