[Zope3-checkins] SVN: Zope3/branches/srichter-twisted-integration/ Fixed form handling.

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Apr 14 14:08:45 EDT 2005


Log message for revision 29983:
  Fixed form handling.
  

Changed:
  U   Zope3/branches/srichter-twisted-integration/doc/TWISTED-TODO.txt
  U   Zope3/branches/srichter-twisted-integration/src/zope/app/wsgi/__init__.py

-=-
Modified: Zope3/branches/srichter-twisted-integration/doc/TWISTED-TODO.txt
===================================================================
--- Zope3/branches/srichter-twisted-integration/doc/TWISTED-TODO.txt	2005-04-14 16:19:14 UTC (rev 29982)
+++ Zope3/branches/srichter-twisted-integration/doc/TWISTED-TODO.txt	2005-04-14 18:08:45 UTC (rev 29983)
@@ -3,8 +3,6 @@
 
 * Implement graceful shutdown, including KeyboardInterrupt.
 
-* Forms do not work. :( This is absolutely critical!
-
 * Set the thread count. Itamar suggested having our own thread pool.
 
 * Use configuration information to create servers.
@@ -13,5 +11,8 @@
 
 * Have information being displayed on the screen upon server start.
 
-* Display log on screen. In general, we need to do logging based on the info
+* Display username in logs. In general, we need to do logging based on the info
   from zope.conf.
+
+* We need to get an FTP server working. FTP is a long-supported protocol and
+  we cannot have a Zope 3 version without it.
\ No newline at end of file

Modified: Zope3/branches/srichter-twisted-integration/src/zope/app/wsgi/__init__.py
===================================================================
--- Zope3/branches/srichter-twisted-integration/src/zope/app/wsgi/__init__.py	2005-04-14 16:19:14 UTC (rev 29982)
+++ Zope3/branches/srichter-twisted-integration/src/zope/app/wsgi/__init__.py	2005-04-14 18:08:45 UTC (rev 29983)
@@ -98,6 +98,12 @@
         # manager and (2) it functions as the output stream for the publisher. 
         wsgiOutput = WSGIOutput(start_response)
 
+        # Clean-up environment
+        # 1. Remove empty content type header, since it confuses
+        #    cgi.FieldStorage
+        if 'CONTENT_TYPE' in environ and not environ['CONTENT_TYPE']:
+            del environ['CONTENT_TYPE']
+
         request = self.requestFactory(
             environ['wsgi.input'], wsgiOutput, environ)
 



More information about the Zope3-Checkins mailing list