--- publish.py-orig 2004-05-03 16:32:24.000000000 +0200 +++ publish.py 2004-05-03 16:35:04.000000000 +0200 @@ -284,6 +284,13 @@ SessionPublisher to handle session details.""" pass + def finish_output(self, output, request, path): + """ + Hook for processing the output. + Example: Check Syntax of HTML with tidy + """ + return output + def finish_interrupted_request (self, request, exc): """ Called at the end of an interrupted request. Requests are @@ -468,6 +475,7 @@ "object is neither callable nor a string: %s" % repr(object)) + output=self.finish_output(output, request, path) # The callable ran OK, commit any changes to the session self.finish_successful_request(request)