All pastes #83812 Raw Edit

Something

public python v1 · immutable
·published 2006-07-10 03:05 UTC
rendered paste body
import cherrypyfrom cherrytemplate import renderTemplateclass HelloWorld:	def index(self):		name = "valaki"		return renderTemplate(file = "index.tpl")	def checkZip(self, zip):		return "valami"	index.exposed = True	checkZip.exposed = Truecherrypy.config.update(file="server.conf")  cherrypy.root = HelloWorld()cherrypy.server.start()# response to http://localhost:8080<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head>    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>    <title>500 Internal error</title>    <style type="text/css">    #poweredBy {        margin-top: 20px;        border-top: 2px solid black;        font-style: italic;    }    #traceback {        color: red;    }    </style></head>    <body>        <h2>500 Internal error</h2>        <p>Server got itself in trouble</p>        <pre id="traceback">Traceback (most recent call last):  File "c:\_prog\python24\lib\site-packages\CherryPy-2.1.0-py2.4.egg\cherrypy\_cphttptools.py", line 269, in run    applyFilters('beforeMain')  File "c:\_prog\python24\lib\site-packages\CherryPy-2.1.0-py2.4.egg\cherrypy\_cphttptools.py", line 641, in applyFilters    method()  File "c:\_prog\python24\lib\site-packages\CherryPy-2.1.0-py2.4.egg\cherrypy\lib\filter\staticfilter.py", line 68, in beforeMain    cptools.serveFile(filename)  File "c:\_prog\python24\lib\site-packages\CherryPy-2.1.0-py2.4.egg\cherrypy\lib\cptools.py", line 280, in serveFile    bodyfile = open(path, 'rb')IOError: [Errno 2] No such file or directory: 'Y:\\_project\\thedvdreencodefactory\\web\\static\\'</pre>    <div id="poweredBy">    <span>Powered by <a href="http://www.cherrypy.org">Cherrypy 2.1.0</a></span>    </div>    </body></html>