def index(self):
Gert Cuykens
gert.cuykens at gmail.com
Wed Dec 20 18:32:45 EST 2006
> > 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 ?
More information about the Python-list
mailing list