Re: [Tutor] GET function not executed

2015-10-18 Thread Alan Gauld
On 18/10/15 06:09, Rahul Pathak wrote: Hi, I started with python web module and i have no experience with web. OK, web.py is not part of the standard library and I have no experience with that specific framework. I also see Peter Otten has picked up an issue about the urls set. But there's som

Re: [Tutor] GET function not executed

2015-10-18 Thread Peter Otten
Peter Otten wrote: > The use of {...} makes this a set literal, and the order of the items in a > set is undefined. To prevent a class of attacks on web applications it may > even change between invocations: Sorry, I forgot to include the source of setdemo.py. It contains just one line: print {

Re: [Tutor] GET function not executed

2015-10-18 Thread Peter Otten
Rahul Pathak wrote: > Hi, > > I started with python web module and i have no experience with web. > > I used the example which is on the web.py site - > > -- > import web > > urls = { > '/', 'index' > } > > class index: > def GET(self): >

[Tutor] GET function not executed

2015-10-18 Thread Rahul Pathak
Hi, I started with python web module and i have no experience with web. I used the example which is on the web.py site - -- import web urls = { '/', 'index' } class index: def GET(self): return "Hello World" if __name__ == "__mai