예제 #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))