I having the same problem , with all my json calls , which are not with jsonrpc.
I found this post and  i tried adding

response.generic_patterns = ['*']

and it worked! Thanks alot rammi you save a life.I will never updating
 web2py unless something major improved.

On 8/30/11, Omi Chiba <[email protected]> wrote:
> Rami,
>
> I'm using the same version and just follow the chapter but It works
> fine.
> It runs under Rocket WSGI web server comming with web2py. If you are
> using another web server, then you should check the configuration. Or
> it could be a typo somewhere. I will send you my app to your mail
> address.
>
> On Aug 29, 2:29 pm, rami <[email protected]> wrote:
>> I recently decided to try web2py and so I am going through the
>> tutorials in Chapter 3.
>> I have Version 1.98.2. When I got to the Say My Name Example, I
>> followed the steps, but I found out that I have to add
>> response.generic_patterns = ['*']  because I kept getting "Invalid
>> View".
>> Ok, so in my default controller I did this:
>>
>> def first():
>>     response.generic_patterns = ['*']
>>     return dict()
>>
>> def second():
>>     response.generic_patterns = ['*']
>>     return dict()
>>
>> Then under views, I created first.html and second html:
>> <<<<first.html>>>>
>> {{extend 'layout.html'}}
>> What is your name?
>> <form action="second">
>>     <input name="visitor_name" />
>>     <input type="submit" />
>> </form>
>>
>> <<<<second.html>>>>
>> {{extend 'layout.html'}}
>> <h1> Hello {{=request.vars.visitor_name}}</h1>
>>
>> Now when I try to see first.html, it just displays "First" as a title,
>> but no form is present.
>>
>> Any ideas why this is happening??
>>
>> Thank you!

Reply via email to