You are not logged in Log in Join
You are here: Home » Members » adytumsolutions » PyCon2004 » TwistedZope » wikipage_view

Log in
Name

Password

 
 
Zope2 Sprint »

TwistedZope

Notes

  1. Paul is planning a TwistedZopeOpenSpaceTalk for Friday afternoon.
  2. Chris suggested to look at the Zope cgi and to examine the single threaded mode for starters.
  3. Jim Fulton talked to us about the ZRendevous class in the ZServer
  4. A simple runnable script that should be placed in a Zope 2 ZOPE_HOME which attempts to render a call to /test out is available in ZopeCommandLineTest
  5. The thing that people use in Zope (ZServer) is the response, and this is what we need to interfaces with.
  6. We came up with stupid TwistedZopeIntegrationCode.
  7. A command to InstallTwistedIntoAZopeSoftwareHome
  8. IRCTwistedZopeNotes
  9. Chris was remote on day 4, so I IRC'ed with him and then badgered Donovan Preston into helping us out. Here's DonovansTwistedZopeAdaptation (adapted from Chris' notes from yesterday). You can integrate this with pdb by setting the -b flag in twistd. To run the TwistedZope server, execute like this:
     twistd -noy twisted_zope.py
    
  10. Chris did a bit of hacking Donovan's thingy to make POST requests, cookies, and authentication work. See ChrisHacksDonovansCode.

Tasks

  1. write a script that takes a url, breaks it apart, passes it to the publisher, and data to the prompt. Look in PubCore calls publish module with a name, hard part is manufaturing request objects. Need to be dummy classes that don't import from ZServer cause we're going to get rid of ZServer.
  2. get twisted going serving a normal cgi application, calls out to the file system to execute a file. We will get rid of this.... it's just a place to start. Server code: TestWebCGIServer. TestServerBenchmarks.
  3. look at twisted code, get the request out of twisted server
  4. StubOutZopeCode for a twisted ZServer that has all the same methods and start filling them in
  5. there's no more ZServer, so we need to provide a ResponseObject?