[Twisted-Python] Twisted 1.0.4 - Problem with `domtemplate.html'
François Pinard
pinard at iro.umontreal.ca
Mon Apr 21 20:06:45 EDT 2003
Hi, people.
In Twisted 1.0.4, file `doc/howto/domtemplate.html' has this line:
---------------------------------------------------------------------->
<a href="http://twistedmatrix.com/documents/howto/listings/TwistedQuotes/webquote.rpy">See it in action!</a>
----------------------------------------------------------------------<
I was expecting a demonstration of some sort. `links' gave me a traceback,
which is likely not the correct output. For this message, I wanted a copy
of that output (`links' does not seem to support mouse cuts), so I tried:
---------------------------------------------------------------------->
wget http://twistedmatrix.com/documents/howto/listings/TwistedQuotes/webquote.rpy
----------------------------------------------------------------------<
which yielded:
---------------------------------------------------------------------->
--19:55:44-- http://twistedmatrix.com/documents/howto/listings/TwistedQuotes/webquote.rpy
=> `webquote.rpy'
Résolution de twistedmatrix.com... complété.
Connexion vers twistedmatrix.com[64.123.27.105]:80...connecté.
requête HTTP transmise, en attente de la réponse...500 Internal Server Error
19:55:46 ERREUR 500: Internal Server Error.
----------------------------------------------------------------------<
and no output. Suffering the slooow start of Netscape, I got a cut-able
output, which appears below. Netscape did not show the `500' Error...
---------------------------------------------------------------------->
web.Server Traceback (most recent call last):
exceptions.ImportError: No module named TwistedQuotes
/usr/lib/python2.2/site-packages/twisted/web/server.py, line 152 in process
150 self.postpath = map(urllib.unquote, string.split(self.path[1:], '/'))
151 try:
152 resrc = self.site.getResourceFor(self)
153 self.render(resrc)
Self
site
path
'/documents/howto/listings/TwistedQuotes/webquote.rpy'
postpath
Locals
self
Globals
urllib
<module 'urllib' from '/usr/lib/python2.2/urllib.pyc'>
string
<module 'string' from '/usr/lib/python2.2/string.pyc'>
/usr/lib/python2.2/site-packages/twisted/web/server.py, line 471 in getResourceFor
469 request.sitepath = copy.copy(request.prepath)
470 request.acqpath = copy.copy(request.prepath)
471 return self.resource.getChildForRequest(request)
472
Self
resource
Locals
self
request
Globals
copy
<module 'copy' from '/usr/lib/python2.2/copy.pyc'>
/usr/lib/python2.2/site-packages/twisted/web/resource.py, line 173 in getChildForRequest
171 request.acqpath.append(pathElement)
172 request.prepath.append(pathElement)
173 res = res.getChildWithDefault(pathElement, request)
174 return res
Locals
pathElement
'webquote.rpy'
res
request
/usr/lib/python2.2/site-packages/twisted/web/resource.py, line 160 in getChildWithDefault
158 return self.children[path]
159
160 return self.getChild(path, request)
161
Self
children
Locals
path
'webquote.rpy'
self
request
/usr/lib/python2.2/site-packages/twisted/web/static.py, line 340 in getChild
338 #the `registry' argument is new, so we have to do this nasty hack
339 try:
340 p = processor(childPath, self.registry)
341 except TypeError: # this isn't very robust :(
Self
registry
Locals
childPath
'/var/www/WebSite/twistedmatrix.com/documents/howto/listings/TwistedQuotes/webquote.rpy'
self
p
'/var/www/WebSite/twistedmatrix.com/documents/howto/listings/TwistedQuotes/webquote'
processor
/usr/lib/python2.2/site-packages/twisted/web/script.py, line 80 in ResourceScript
78 'recache': cs.recache}
79 try:
80 execfile(path, glob, glob)
81 except AlreadyCached, ac:
Locals
cs
path
'/var/www/WebSite/twistedmatrix.com/documents/howto/listings/TwistedQuotes/webquote.rpy'
glob
Globals
AlreadyCached
<class twisted.web.script.AlreadyCached at 0x83e1fc4>
/var/www/WebSite/twistedmatrix.com/documents/howto/listings/TwistedQuotes/webquote.rpy, line 3 in ?
1# -*- Python -*-
2
3from TwistedQuotes import webquoteresource
4
exceptions.ImportError: No module named TwistedQuotes
----------------------------------------------------------------------<
--
François Pinard http://www.iro.umontreal.ca/~pinard
More information about the Twisted-Python
mailing list