[Checkins]
SVN: zc.resourcelibrary/trunk/src/zc/resourcelibrary/publication.py
fixed retry handling, if a retry was issued,
the resource_library attribute was not set on the newly created
response object
Bernd Dorn
bernd.dorn at fhv.at
Thu Sep 21 01:34:09 EDT 2006
Log message for revision 70278:
fixed retry handling, if a retry was issued, the resource_library attribute was not set on the newly created response object
Changed:
U zc.resourcelibrary/trunk/src/zc/resourcelibrary/publication.py
-=-
Modified: zc.resourcelibrary/trunk/src/zc/resourcelibrary/publication.py
===================================================================
--- zc.resourcelibrary/trunk/src/zc/resourcelibrary/publication.py 2006-09-21 03:23:27 UTC (rev 70277)
+++ zc.resourcelibrary/trunk/src/zc/resourcelibrary/publication.py 2006-09-21 05:34:09 UTC (rev 70278)
@@ -35,6 +35,14 @@
class Response(BrowserResponse):
+ def retry(self):
+ """
+ Returns a response object to be used in a retry attempt
+ """
+ response = super(Response, self).retry()
+ response.resource_libraries = self.resource_libraries
+ return
+
def _implicitResult(self, body):
#figure out the content type
content_type = self.getHeader('content-type')
@@ -45,7 +53,8 @@
if content_type == 'text/html' or content_type == 'text/xml':
#act on HTML and XML content only!
- # add any libraries that the explicitly referenced libraries require
+ # add any libraries that the explicitly referenced
+ # libraries require
libs = list(self.resource_libraries)
while libs:
lib = libs.pop()
More information about the Checkins
mailing list