Just to update this thread, I guess this is fixed in trunk:
http://code.google.com/p/web2py/source/detail?r=729dfb5d92789c2accad605b543be7775def6cdc

2010/12/28 Emceha <[email protected]>

> Hi I have such controller in default.py
>
> def index():
>    dzialy = db().select(db.dzialy.ALL,orderby=db.dzialy.kolejnosc)
>    dzialy_reversed = dzialy.sort(lambda dzial:
> dzial.kolejnosc,reverse=True)
>    return dict(dzialy=dzialy,dzialy_reversed=dzialy_reversed)
>
> I use this with google app engine SDK (for GAE deployment) so started
> it up with dev_appserver.py
>
> It works just fine with
> Version 1.89.5 (2010-11-21 22:12:54)
>
> but Version 1.91.4 (2010-12-22 17:31:23)
> fails with this error listed below
>
> Traceback (most recent call last):
>  File "/media/AA1/GAE/web2py/gluon/restricted.py", line 188, in
> restricted
>    exec ccode in environment
>  File "/media/AA1/GAE/web2py/applications/init/controllers/
> default.py:index", line 69, in <module>
>  File "/media/AA1/GAE/web2py/gluon/globals.py", line 95, in <lambda>
>    self._caller = lambda f: f()
>  File "/media/AA1/GAE/web2py/applications/init/controllers/
> default.py:index", line 7, in index
>  File "/media/AA1/GAE/web2py/gluon/dal.py", line 4388, in select
>    return self.db._adapter.select(self.query,fields,attributes)
>  File "/media/AA1/GAE/web2py/gluon/dal.py", line 2654, in select
>    (items, tablename, fields) =
> self.select_raw(query,fields,attributes)
>  File "/media/AA1/GAE/web2py/gluon/dal.py", line 2611, in select_raw
>    tablename = self.get_table(query)
>  File "/media/AA1/GAE/web2py/gluon/dal.py", line 894, in get_table
>    raise RuntimeError, "No table selected"
> RunimeError: No table selected
>
> Is that because my code is wrong or we lost some compatibility?
>



-- 

Bruno Rocha
http://about.me/rochacbruno/bio

Reply via email to