[Moin-devel] CVS: MoinMoin cgimain.py,1.54,1.55
J?rgen Hermann
jhermann at users.sourceforge.net
Wed May 22 12:09:10 EDT 2002
Update of /cvsroot/moin/MoinMoin
In directory usw-pr-cvs1:/tmp/cvs-serv13134/MoinMoin
Modified Files:
cgimain.py
Log Message:
StdoutGuard to detect premature CGI output
Index: cgimain.py
===================================================================
RCS file: /cvsroot/moin/MoinMoin/cgimain.py,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -r1.54 -r1.55
*** cgimain.py 9 May 2002 01:54:40 -0000 1.54
--- cgimain.py 22 May 2002 19:08:18 -0000 1.55
***************
*** 113,116 ****
--- 113,120 ----
request.clock.stop('imports')
+ # install stdout guard if available
+ if hasattr(webapi, 'StdoutGuard'):
+ sys.stdout = webapi.StdoutGuard(request)
+
# !!! if all refs to user.current are removed, create the user together with the request instance
request.user = user.current
More information about the Moin-devel
mailing list