2007-10-27 | paulb | raw annotate files changeset graph | [project @ 2007-10-27 21:34:37 by paulb] Changed the multipart field handling to write uploaded files to disk as temporary files for access through FileContent objects, and to avoid reading the entire request into memory. Made the Stream wrapper class more efficient for read operations, adding the possibility of reading a limited number of bytes. |
1 #!/usr/bin/env python 2 3 # Uncomment and adjust the paths below if WebStack is not installed somewhere 4 # on the PYTHONPATH. 5 6 #import sys 7 #sys.path.append("/home/paulb/Software/Python/WebStack") 8 #sys.path.append("/home/paulb/Software/Python/WebStack/examples/Common") 9 10 from WebStack.Adapters.WSGI import deploy_as_cgi 11 from Cookies import CookiesResource 12 13 deploy_as_cgi(CookiesResource(), handle_errors=0) 14 15 # vim: tabstop=4 expandtab shiftwidth=4