Hi All,
following the documentation about orderby (
http://mdp.cti.depaul.edu/AlterEgo/default/show/35)
I'm getting an error on this instruction:
r=db().select(orderby=~db.cas_user.first_name)
(db().select(db.cas_user.ALL) works)
the errors I'm getting is
ERROR 2009-02-25 02:33:33,566 main.py] Traceback (most recent call last):
File "/home/sebas/dev/gluon/restricted.py", line 98, in restricted
exec ccode in environment
File "/home/sebas/dev/applications/cas/controllers/default.py", line 40,
in <module>
File "/home/sebas/dev/gluon/globals.py", line 75, in <lambda>
self._caller = lambda f: f()
File "/home/sebas/dev/applications/cas/controllers/default.py", line 31,
in find_people
r=db().select(orderby=~db.cas_user.first_name)
File "/home/sebas/dev/gluon/contrib/gql.py", line 717, in select
(items, tablename, fields) = self._select(*fields, **attributes)
File "/home/sebas/dev/gluon/contrib/gql.py", line 662, in _select
table = self._get_table_or_raise()
File "/home/sebas/dev/gluon/contrib/gql.py", line 641, in
_get_table_or_raise
raise SyntaxError, 'SQLSet: no tables selected'
SyntaxError: SQLSet: no tables selected
any ideas ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---