Pastebin
Paste #666: No description
< previous paste - next paste>
Pasted by Anonymous Coward
(tdn@bart) (07-07-27 11:54) (P:0 L:1) [0]
~/tmp/CherryPy/helloworld $ cat > hello.py
import cherrypy
class HelloWorld:
def index(self):
return "Hello world!"
index.exposed = True
cherrypy.quickstart(HelloWorld())
(tdn@bart) (07-07-27 11:54) (P:0 L:1) [0]
~/tmp/CherryPy/helloworld $ python hello.py
Traceback (most recent call last):
File "hello.py", line 8, in <module>
cherrypy.quickstart(HelloWorld())
AttributeError: 'module' object has no attribute 'quickstart'
(tdn@bart) (07-07-27 11:54) (P:0 L:1) [1]
~/tmp/CherryPy/helloworld $
New Paste
Go to most recent paste.