for now do this instead: db(db.languages).select(cache=(cache.ram,3600)).sort(lambda a: a.full)]*
mind that unless you redefined cache.ram as GAE memcache the caching will not work. On Dec 23, 1:41 pm, "Arun K.Rajeevan" <the1.a...@gmail.com> wrote: > see GAE error message. (it runs perfectly fine, if web2py run stand alone) > And was running ok, till previos hour. > What I can track is *init/controllers/default.py:index", line 5, in <module> > > *and that line is perfect (given below) and runs ok in web2py stand alone. > *options = [OPTION(row.full + ' - ' + row.short, _value=row.id) for row in > db().select(db.languages.ALL, cache=(cache.ram,3600)).sort(lambda a: > a.full)]* > > ------------------------------------------------------------------------------------------------------------------------------ > I:\Evolve\Work\web2py_src_downloaded\google_appengine\google\appengine\tools\dev > _appserver.py:1798: DeprecationWarning: google.appengine.api.labs.taskqueue > is d > eprecated, please use google.appengine.api.taskqueue > description) > ERROR 2010-12-23 19:24:43,640 restricted.py:151] Traceback (most recent > call > last): > File > "I:\Evolve\Work\web2py_src_downloaded\google_appengine\visuallingua\gluon > \restricted.py", line 188, in restricted > exec ccode in environment > File > "I:\Evolve\Work\web2py_src_downloaded\google_appengine\visuallingua\appli > cations\*init/controllers/default.py:index", line 5, in <module>* > File > "I:\Evolve\Work\web2py_src_downloaded\google_appengine\visuallingua\gluon > \dal.py", line 4388, in select > return self.db._adapter.select(self.query,fields,attributes) > File > "I:\Evolve\Work\web2py_src_downloaded\google_appengine\visuallingua\gluon > \dal.py", line 2654, in select > (items, tablename, fields) = self.select_raw(query,fields,attributes) > File > "I:\Evolve\Work\web2py_src_downloaded\google_appengine\visuallingua\gluon > \dal.py", line 2611, in select_raw > tablename = self.get_table(query) > File > "I:\Evolve\Work\web2py_src_downloaded\google_appengine\visuallingua\gluon > \dal.py", line 894, in get_table > raise RuntimeError, "No table selected" > RuntimeError: No table selected