[Zope] perplexed by hanging Python script

Dieter Maurer dieter@handshake.de
Sun, 17 Nov 2002 23:00:33 +0100


Skip Montanaro writes:
 > ...
 > This simple Python script hangs when accessed via direct URL or the ZMI (I
 > didn't try the ZMI with links):
 > 
 >     return []
The script does not hang.

  Whenever a method (like your Python script above) returns
  a Python false value, ZPublisher turns this into a
  special HTTP return code (204 - success, no content).

  Many browsers interprete this return code wrong; they seem
  to wait for more data.

  Do not return Python false values to ZPublisher!


Dieter