[Twisted-Python] Web server persistance

Ted Patrick ted at powersdk.com
Mon Oct 6 13:20:59 MDT 2003


I have a project using Twisted as an http server. 

What is the best way to persistent server data across server start/stop? 

Example:
While the server is running, a user will add virtual directories via a .rpy
application as follows:

root.putChild(name, path)

Ideally modifications to the server configuration would persist across
server start/stop. I would also like a generic format to store data related
to a particular leaf of an application as follows:

//url  http://mytwisted/dog/cat/document.txt
//data pertaining to this url could be added at
root.dog.cat.document.txt = 33

This data would also be persistent.

Thanks in advance.

Theodore E. Patrick
PowerSDK - Code for a distributed world
http://www.powersdk.com
 





More information about the Twisted-Python mailing list