def publisher(apacheReq): """The only "link" to mod_python/apache; this gets called on every request inbound.""" #raise '\n'.join(["%s = %s"%(x, getattr(apacheReq, x)) for x in dir(apacheReq)]) req = dispatch(ApacheRequestAdapter(apacheReq)) apacheReq.content_type = req.content_type apacheReq.write(req.response) return apache.OK
def process(self, req, app): global dispatch return dispatch(ZopeRequestAdapter(req, app))