示例#1
0
文件: apache2.py 项目: circlecycle/xc
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
示例#2
0
文件: zope3.py 项目: circlecycle/xc
 def process(self, req, app):
   global dispatch
   return dispatch(ZopeRequestAdapter(req, app))