[Twisted-web] [PATH] Twisted.web2 little bug fixes.
Valentino Volonghi
dialtone at gmail.com
Fri Oct 8 12:40:39 MDT 2004
Index: twisted/web2/server.py
===================================================================
--- twisted/web2/server.py (revision 11928)
+++ twisted/web2/server.py (working copy)
@@ -111,7 +111,7 @@
requestContext = context.RequestContext(tag=self)
- self.deferredContext = self._getChild(requestContext,
site.getRootResource(), self.postpath)
+ self.deferredContext = self._getChild(requestContext,
self.site.getRootResource(), self.postpath)
self.deferredContext.addErrback(self._processingFailed, requestContext)
def handleContentChunk(self, data):
@@ -140,7 +140,7 @@
).addErrback(
self._processingFailed, newctx
).addCallback(
- self.handleSegment, path, newctx
+ self._handleSegment, path, newctx
)
def _handleSegment(self, result, path, pageContext):
@@ -239,7 +239,7 @@
raise TypeError("html is not a string")
return
- def notifyFinish(self):
+ def notifyFinish(self):
"""Notify when finishing the request
@return: A deferred. The deferred will be triggered when the
--
Valentino Volonghi aka Dialtone
Now running FreeBSD 5.3-beta6
Blog: http://vvolonghi.blogspot.com
Home Page: http://xoomer.virgilio.it/dialtone/
More information about the Twisted-web
mailing list