Zope2 Sprint
»
TwistedZope
Notes
- Paul is planning a TwistedZopeOpenSpaceTalk for Friday afternoon.
- Chris suggested to look at the Zope cgi and to examine the single threaded mode for starters.
- Jim Fulton talked to us about the ZRendevous class in the ZServer
- 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 - The thing that people use in Zope (ZServer) is the response, and this is what we need to interfaces with.
- We came up with stupid TwistedZopeIntegrationCode.
- A command to InstallTwistedIntoAZopeSoftwareHome
- IRCTwistedZopeNotes
- 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 intwistd
. To run the TwistedZope server, execute like this:twistd -noy twisted_zope.py
- Chris did a bit of hacking Donovan's thingy to make POST requests, cookies, and authentication work. See ChrisHacksDonovansCode.
Tasks
- 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.
- 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.
- look at twisted code, get the request out of twisted server
- StubOutZopeCode for a twisted ZServer that has all the same methods and start filling them in
- there's no more ZServer, so we need to provide a ResponseObject?