コード例 #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))