On Nov 2, 4:56 am, NoviceSortOf <[EMAIL PROTECTED]> wrote:
> After reviewing your examples above, I've tried the following,
> but it returns "Invalid request invalid function".
That mean you are calling an action that does not exist. There is a
typo in the URL.
> * Is it possible to test functions like SQLFORM
> on a command line, or in IDLE or other debug
> editor suite?
yes,
python web2py.py -S yourappname -M
>>> print db.tables
>>> form=SQLFORM(db[db.tables[0]])
etc.
> * Is there some error or wrong assumption in my
> code or syntax?
>
> def search_by_author():
> form=SQLFORM(db.titles,fields=['author'])
> if request.vars.author: rows=db(db.titles.author.like('%%%s%%' %
> request.vars.author)).select(orderby=db.titles.author)
> else: rows=[]
> return dict(form=form,rows=rows)
I do not think there is an error in this code. I think you have a typo
in the code that calls it.
Massimo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---