> > class HelloWorld(object): > > @cherrypy.exposed > > def index(self): > > return "Hello World"
do i have to write @cherrypy.exposed before every def or just once for all the def's ? and why not write something like @index.exposed ? in other words i have no idea what @ actually does i only know i have too write it to make it work :) Am guessing @ is something like prototyping in javascript but then def index is not a object but a method ? So that would not make sense ? oh and self stands more or less for private method right ? -- http://mail.python.org/mailman/listinfo/python-list