[mod_python] problem with input filter and POST data (fileupload)

Graham Dumpleton graham.dumpleton at gmail.com
Sat Feb 14 18:17:21 EST 2009


Bouncing replay back to list.

2009/2/15 Joerg <jerch at rockborn.de>:
>> Behaviour explained through failing to check for 'None' on data read
>> by input filter before closing it.
>>
>>   from mod_python import apache
>>
>>   def outputfilter(filter):
>>
>>       s = filter.read()
>>       while s:
>>           filter.write(s.upper())
>>           s = filter.read()
>>
>>       if s is None:
>>           filter.close()
>>
>> In other words, forget the 'if s is None' and you will see that occur
>> as input filter has been prematurely closed.
>>
>> Graham
>
> sorry graham, it doesnt work with the "if s is None" either.
>
> Joerg
>
>


More information about the Mod_python mailing list